summaryrefslogtreecommitdiff
path: root/fftools
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2017-11-13 00:10:45 -0300
committerJames Almer <jamrial@gmail.com>2017-11-15 01:14:22 -0300
commitb2731bcd1dc7587d20b4b2ceee0bcbade29a6ea2 (patch)
tree03ad8ee7d92af2d8149468d1626ab3e1d164d1bc /fftools
parente9025beacb86dd4390a8448fb38671699d40e24c (diff)
ffprobe: remove usage of AVCodecContext accessors
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'fftools')
-rw-r--r--fftools/ffprobe.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fftools/ffprobe.c b/fftools/ffprobe.c
index 07ca842efa..0e7a771517 100644
--- a/fftools/ffprobe.c
+++ b/fftools/ffprobe.c
@@ -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) {