[FFmpeg-cvslog] ffprobe: don't access AVCodecContext.pkt_timebase directly

James Almer git at videolan.org
Tue Sep 27 04:51:53 EEST 2016


ffmpeg | branch: master | James Almer <jamrial at gmail.com> | Mon Sep 26 22:45:39 2016 -0300| [64545dd6001355491084902008431e45b3f03c50] | committer: James Almer

ffprobe: don't access AVCodecContext.pkt_timebase directly

Signed-off-by: James Almer <jamrial at gmail.com>

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

 ffprobe.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ffprobe.c b/ffprobe.c
index e64c66e..b59f11e 100644
--- a/ffprobe.c
+++ b/ffprobe.c
@@ -2611,7 +2611,7 @@ static int open_input_file(InputFile *ifile, const char *filename)
             if (err < 0)
                 exit(1);
 
-            ist->dec_ctx->pkt_timebase = stream->time_base;
+            av_codec_set_pkt_timebase(ist->dec_ctx, stream->time_base);
 #if FF_API_LAVF_AVCTX
             ist->dec_ctx->time_base = stream->codec->time_base;
             ist->dec_ctx->framerate = stream->codec->framerate;



More information about the ffmpeg-cvslog mailing list