ffmpeg: remove usage of AVCodecContext accessors

Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
James Almer
2017-11-13 00:10:21 -03:00
parent c4131a0613
commit e9025beacb
2 changed files with 4 additions and 4 deletions

View File

@@ -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);