History

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.

Andreas Rheinhardt committed 3 years ago

Commit f4831351 parent 518f79f1 file · +1 −1Browse files

Unified · Split

libavcodec/mpegvideo_dec.c+1−1
@@ -380,7 +380,7 @@ int ff_mpv_frame_start(MpegEncContext *s, AVCodecContext *avctx) · 379 unmodified lines
380 if (s->pict_type == AV_PICTURE_TYPE_B && s->next_picture_ptr && s->next_picture_ptr->f->buf[0])380 if (s->pict_type == AV_PICTURE_TYPE_B && s->next_picture_ptr && s->next_picture_ptr->f->buf[0])
381 av_log(avctx, AV_LOG_DEBUG,381 av_log(avctx, AV_LOG_DEBUG,
382 "allocating dummy last picture for B frame\n");382 "allocating dummy last picture for B frame\n");
383 else if (s->pict_type != AV_PICTURE_TYPE_I)383 else if (s->codec_id != AV_CODEC_ID_H261)
384 av_log(avctx, AV_LOG_ERROR,384 av_log(avctx, AV_LOG_ERROR,
385 "warning: first frame is no keyframe\n");385 "warning: first frame is no keyframe\n");
386 386

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t