summaryrefslogtreecommitdiff
path: root/fftools/ffmpeg.c
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2017-11-13 00:10:21 -0300
committerJames Almer <jamrial@gmail.com>2017-11-15 01:14:22 -0300
commite9025beacb86dd4390a8448fb38671699d40e24c (patch)
treec83d241888a31a230eb1fe0394981c583a9310bb /fftools/ffmpeg.c
parentc4131a0613c4b2c30c01b2550b41068815d27799 (diff)
ffmpeg: remove usage of AVCodecContext accessors
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'fftools/ffmpeg.c')
-rw-r--r--fftools/ffmpeg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fftools/ffmpeg.c b/fftools/ffmpeg.c
index db391f7f7d..babd85f7bc 100644
--- a/fftools/ffmpeg.c
+++ b/fftools/ffmpeg.c
@@ -2877,7 +2877,7 @@ static int init_input_stream(int ist_index, char *error, int error_len)
/* Useful for subtitles retiming by lavf (FIXME), skipping samples in
* audio, and video decoders such as cuvid or mediacodec */
- av_codec_set_pkt_timebase(ist->dec_ctx, ist->st->time_base);
+ ist->dec_ctx->pkt_timebase = ist->st->time_base;
if (!av_dict_get(ist->decoder_opts, "threads", NULL, 0))
av_dict_set(&ist->decoder_opts, "threads", "auto", 0);