summaryrefslogtreecommitdiff
path: root/libavcodec/libdav1d.c
diff options
context:
space:
mode:
authorDerek Buitenhuis <derek.buitenhuis@gmail.com>2020-08-25 14:49:02 +0100
committerDerek Buitenhuis <derek.buitenhuis@gmail.com>2020-08-26 16:44:03 +0100
commit649a6969f75f2378c65768deb9debd325eb2fc7f (patch)
tree3efcad928eadb6e2fa5ea353378d06f5cd2d7d4a /libavcodec/libdav1d.c
parent2a9b934675b9e2d3850b46f8a618c19b03f02551 (diff)
avcodec/libdav1d: Call ff_set_sar in addition to setting the frame SAR
Similar to what we do in libaomdec.c. Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
Diffstat (limited to 'libavcodec/libdav1d.c')
-rw-r--r--libavcodec/libdav1d.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/libdav1d.c b/libavcodec/libdav1d.c
index fd801c6fd5..3af7ef4edc 100644
--- a/libavcodec/libdav1d.c
+++ b/libavcodec/libdav1d.c
@@ -274,6 +274,7 @@ static int libdav1d_receive_frame(AVCodecContext *c, AVFrame *frame)
frame->height * (int64_t)p->frame_hdr->render_width,
frame->width * (int64_t)p->frame_hdr->render_height,
INT_MAX);
+ ff_set_sar(c, frame->sample_aspect_ratio);
switch (p->seq_hdr->chr) {
case DAV1D_CHR_VERTICAL: