diff options
author | James Almer <jamrial@gmail.com> | 2020-09-09 16:57:50 -0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2020-09-12 13:10:16 -0300 |
commit | b7a06885f1a7ac1d7f1ac4aec0fa329cbf3c524b (patch) | |
tree | 2a1c0b253c32a8b91508f1ec1eda238c7d4a1138 /libavcodec | |
parent | 5a562f518f3a3fdcf5fe5804c3a63dc95696da28 (diff) | |
download | ffmpeg-b7a06885f1a7ac1d7f1ac4aec0fa329cbf3c524b.tar.gz |
avcodec/av1dec: use av_cmp_q() to compare aspect ratio
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/av1dec.c | 3 |
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; |