diff options
author | James Almer <jamrial@gmail.com> | 2017-11-13 06:10:45 +0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2017-11-15 07:14:22 +0300 |
commit | b2731bcd1dc7587d20b4b2ceee0bcbade29a6ea2 (patch) | |
tree | 03ad8ee7d92af2d8149468d1626ab3e1d164d1bc /fftools | |
parent | e9025beacb86dd4390a8448fb38671699d40e24c (diff) |
ffprobe: remove usage of AVCodecContext accessors
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'fftools')
-rw-r--r-- | fftools/ffprobe.c | 2 |
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) { |