[FFmpeg-cvslog] ffprobe: remove usage of AVCodecContext accessors
James Almer
git at videolan.org
Wed Nov 15 06:18:36 EET 2017
ffmpeg | branch: master | James Almer <jamrial at gmail.com> | Mon Nov 13 00:10:45 2017 -0300| [b2731bcd1dc7587d20b4b2ceee0bcbade29a6ea2] | committer: James Almer
ffprobe: remove usage of AVCodecContext accessors
Signed-off-by: James Almer <jamrial at gmail.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=b2731bcd1dc7587d20b4b2ceee0bcbade29a6ea2
---
fftools/ffprobe.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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) {
More information about the ffmpeg-cvslog
mailing list