Commit b2731bcd authored by James Almer's avatar James Almer

ffprobe: remove usage of AVCodecContext accessors

Signed-off-by: 's avatarJames Almer <jamrial@gmail.com>
parent e9025bea
......@@ -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) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment