mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-01-01 20:42:19 +00:00
avcodec/mpegvideo_dec: Don't emit non-keyframe warning for H.261
H.261 does not have keyframes (or indeed frame types) at all, so this warning is not warranted. Also remove an always-true check while at it. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
parent
518f79f2a8
commit
f48313526b
@ -380,7 +380,7 @@ int ff_mpv_frame_start(MpegEncContext *s, AVCodecContext *avctx)
|
||||
if (s->pict_type == AV_PICTURE_TYPE_B && s->next_picture_ptr && s->next_picture_ptr->f->buf[0])
|
||||
av_log(avctx, AV_LOG_DEBUG,
|
||||
"allocating dummy last picture for B frame\n");
|
||||
else if (s->pict_type != AV_PICTURE_TYPE_I)
|
||||
else if (s->codec_id != AV_CODEC_ID_H261)
|
||||
av_log(avctx, AV_LOG_ERROR,
|
||||
"warning: first frame is no keyframe\n");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user