diff options
author | James Almer <jamrial@gmail.com> | 2023-09-06 11:12:30 -0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2023-09-06 14:37:15 -0300 |
commit | 1652f2492f88434010053289d946dab6a57e4d58 (patch) | |
tree | e57449925e46347414c15c64a43f9a108eedcd0f /libavcodec/av1dec.c | |
parent | 6022e0b04f73841dc9bf9bce11a45e3c09e58e36 (diff) | |
download | ffmpeg-1652f2492f88434010053289d946dab6a57e4d58.tar.gz |
avcodec/av1dec: don't set aspect ratio when it's not yet known
Makes the output of the native decoder consistent with external decoders like
libdav1d with fate-enhanced-flv-av1.
Reviewed-by: Zhao Zhili <quinkblack@foxmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavcodec/av1dec.c')
-rw-r--r-- | libavcodec/av1dec.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/libavcodec/av1dec.c b/libavcodec/av1dec.c index 03283ab064..ec8401f4e0 100644 --- a/libavcodec/av1dec.c +++ b/libavcodec/av1dec.c @@ -755,7 +755,6 @@ static int set_context_with_sequence(AVCodecContext *avctx, if (ret < 0) return ret; } - avctx->sample_aspect_ratio = (AVRational) { 1, 1 }; if (seq->timing_info_present_flag) avctx->framerate = ff_av1_framerate(1LL + seq->timing_info.num_ticks_per_picture_minus_1, |