mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2025-10-07 09:41:32 +08:00
ffmpeg: remove usage of AVCodecContext accessors
Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user