Browse Source

ffprobe: remove usage of AVCodecContext accessors

Signed-off-by: James Almer <jamrial@gmail.com>
tags/n4.0
James Almer 7 years ago
parent
commit
b2731bcd1d
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      fftools/ffprobe.c

+ 1
- 1
fftools/ffprobe.c View 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) {


Loading…
Cancel
Save