diff options
Diffstat (limited to 'libavcodec/zerocodec.c')
-rw-r--r-- | libavcodec/zerocodec.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/zerocodec.c b/libavcodec/zerocodec.c index 4944a3e..8fd8da6 100644 --- a/libavcodec/zerocodec.c +++ b/libavcodec/zerocodec.c @@ -65,8 +65,8 @@ static int zerocodec_decode_frame(AVCodecContext *avctx, void *data, pic->key_frame = 1; pic->pict_type = AV_PICTURE_TYPE_I; } else { - if (prev == NULL) { - av_log(avctx, AV_LOG_ERROR, "No previous frame!\n"); + if (!prev) { + av_log(avctx, AV_LOG_ERROR, "Missing reference frame!\n"); return AVERROR_INVALIDDATA; } pic->key_frame = 0; |