[FFmpeg-cvslog] avformat/utils: set AV_PKT_FLAG_KEY for data packets

Baptiste Coudurier git at videolan.org
Mon Sep 24 23:51:24 EEST 2018


ffmpeg | branch: master | Baptiste Coudurier <baptiste.coudurier at gmail.com> | Mon Jul 30 11:10:38 2018 -0700| [dc58e33dd35e1a216cdc1a629d1ea8ee4429fbbb] | committer: Baptiste Coudurier

avformat/utils: set AV_PKT_FLAG_KEY for data packets

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=dc58e33dd35e1a216cdc1a629d1ea8ee4429fbbb
---

 libavformat/utils.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/utils.c b/libavformat/utils.c
index a72f0a482e..c95aaa2fd6 100644
--- a/libavformat/utils.c
+++ b/libavformat/utils.c
@@ -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



More information about the ffmpeg-cvslog mailing list