mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2024-12-12 13:46:17 +00:00
avcodec/utils: Set coded_frame.pict_type in generic code
This makes it possible to remove more coded_frame usage without breaking the publically visible coded_frame Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
15eda746e7
commit
9789595189
@ -2133,6 +2133,8 @@ FF_DISABLE_DEPRECATION_WARNINGS
|
||||
if (!ret && got_packet && avctx->coded_frame) {
|
||||
avctx->coded_frame->pts = pkt.pts;
|
||||
avctx->coded_frame->key_frame = !!(pkt.flags & AV_PKT_FLAG_KEY);
|
||||
if (avctx->codec->capabilities & AV_CODEC_CAP_INTRA_ONLY)
|
||||
avctx->coded_frame->pict_type = AV_PICTURE_TYPE_I;
|
||||
}
|
||||
FF_ENABLE_DEPRECATION_WARNINGS
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user