]> git.sesse.net Git - ffmpeg/commitdiff
ffprobe: remove usage of AVCodecContext accessors
authorJames Almer <jamrial@gmail.com>
Mon, 13 Nov 2017 03:10:45 +0000 (00:10 -0300)
committerJames Almer <jamrial@gmail.com>
Wed, 15 Nov 2017 04:14:22 +0000 (01:14 -0300)
Signed-off-by: James Almer <jamrial@gmail.com>
fftools/ffprobe.c

index 07ca842efa319f00319986b91894b0dd3f714c39..0e7a771517d4399618706fbdf35ae0997213c8ba 100644 (file)
@@ -2910,7 +2910,7 @@ static int open_input_file(InputFile *ifile, const char *filename)
                 av_dict_set(&codec_opts, "threads", "1", 0);
             }
 
-            av_codec_set_pkt_timebase(ist->dec_ctx, stream->time_base);
+            ist->dec_ctx->pkt_timebase = stream->time_base;
             ist->dec_ctx->framerate = stream->avg_frame_rate;
 
             if (avcodec_open2(ist->dec_ctx, codec, &opts) < 0) {