1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-11-23 21:54:53 +02:00

avcodec/decode: always extract display matrix from Exif in frames

Should help ensure no conflicting values are propagated.

Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
James Almer
2025-08-21 23:39:58 -03:00
parent 6a15183e6a
commit 9dc79241d9

View File

@@ -2365,8 +2365,8 @@ static int exif_attach_ifd(AVCodecContext *avctx, AVFrame *frame, const AVExifMe
}
}
if (orient && orient->value.uint[0] > 1) {
av_log(avctx, AV_LOG_DEBUG, "found nontrivial EXIF orientation: %" PRIu64 "\n", orient->value.uint[0]);
if (orient) {
av_log(avctx, AV_LOG_DEBUG, "found EXIF orientation: %" PRIu64 "\n", orient->value.uint[0]);
ret = attach_displaymatrix(avctx, frame, orient->value.uint[0]);
if (ret < 0) {
av_log(avctx, AV_LOG_WARNING, "unable to attach displaymatrix from EXIF\n");