You've already forked FFmpeg
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:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user