mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-26 19:01:44 +02:00
avformat/utils: set AV_PKT_FLAG_KEY for data packets
This commit is contained in:
parent
e50cb8b2f4
commit
dc58e33dd3
@ -1405,7 +1405,7 @@ static void compute_pkt_fields(AVFormatContext *s, AVStream *st,
|
||||
presentation_delayed, delay, av_ts2str(pkt->pts), av_ts2str(pkt->dts), av_ts2str(st->cur_dts));
|
||||
|
||||
/* update flags */
|
||||
if (is_intra_only(st->codecpar->codec_id))
|
||||
if (st->codecpar->codec_type == AVMEDIA_TYPE_DATA || is_intra_only(st->codecpar->codec_id))
|
||||
pkt->flags |= AV_PKT_FLAG_KEY;
|
||||
#if FF_API_CONVERGENCE_DURATION
|
||||
FF_DISABLE_DEPRECATION_WARNINGS
|
||||
|
Loading…
Reference in New Issue
Block a user