2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Fix deprecation warnings when building with FFmpeg 4.2.

This commit is contained in:
John Preston
2020-02-06 16:39:47 +04:00
parent 951bb22c38
commit 547251f67c
5 changed files with 7 additions and 13 deletions

View File

@@ -174,7 +174,7 @@ CodecPointer MakeCodecPointer(not_null<AVStream*> stream) {
LogError(qstr("avcodec_parameters_to_context"), error);
return {};
}
av_codec_set_pkt_timebase(context, stream->time_base);
context->pkt_timebase = stream->time_base;
av_opt_set(context, "threads", "auto", 0);
av_opt_set_int(context, "refcounted_frames", 1, 0);