summaryrefslogtreecommitdiff
path: root/libavcodec/av1dec.c
diff options
context:
space:
mode:
Diffstat (limited to 'libavcodec/av1dec.c')
-rw-r--r--libavcodec/av1dec.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/libavcodec/av1dec.c b/libavcodec/av1dec.c
index c22606c3ef..9e71a2e5f6 100644
--- a/libavcodec/av1dec.c
+++ b/libavcodec/av1dec.c
@@ -451,8 +451,7 @@ static int update_context_with_frame_header(AVCodecContext *avctx,
(int64_t)width * r_height,
INT_MAX);
- if (avctx->sample_aspect_ratio.num != aspect_ratio.num ||
- avctx->sample_aspect_ratio.den != aspect_ratio.den) {
+ if (av_cmp_q(avctx->sample_aspect_ratio, aspect_ratio)) {
ret = ff_set_sar(avctx, aspect_ratio);
if (ret < 0)
return ret;