From b009f0637555970eb5471fc46d3d8a2d6cbfefe2 Mon Sep 17 00:00:00 2001 From: Lukas Fleischer Date: Thu, 25 Sep 2025 10:17:59 -0400 Subject: [PATCH] Fix compatibility with ffmpeg 8 Fixes #29713. --- Telegram/SourceFiles/ffmpeg/ffmpeg_utility.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Telegram/SourceFiles/ffmpeg/ffmpeg_utility.cpp b/Telegram/SourceFiles/ffmpeg/ffmpeg_utility.cpp index 9ccdb15592..f261b7d6dc 100644 --- a/Telegram/SourceFiles/ffmpeg/ffmpeg_utility.cpp +++ b/Telegram/SourceFiles/ffmpeg/ffmpeg_utility.cpp @@ -683,10 +683,10 @@ int DurationByPacket(const Packet &packet, AVRational timeBase) { } int ReadRotationFromMetadata(not_null stream) { - const auto displaymatrix = av_stream_get_side_data( - stream, - AV_PKT_DATA_DISPLAYMATRIX, - nullptr); + const auto displaymatrix = av_packet_side_data_get( + stream->codecpar->coded_side_data, + stream->codecpar->nb_coded_side_data, + AV_PKT_DATA_DISPLAYMATRIX); auto theta = 0; if (displaymatrix) { theta = -round(av_display_rotation_get((int32_t*)displaymatrix));