]> git.sesse.net Git - ffmpeg/commitdiff
avcodec/libdav1d: Call ff_set_sar in addition to setting the frame SAR
authorDerek Buitenhuis <derek.buitenhuis@gmail.com>
Tue, 25 Aug 2020 13:49:02 +0000 (14:49 +0100)
committerDerek Buitenhuis <derek.buitenhuis@gmail.com>
Wed, 26 Aug 2020 15:44:03 +0000 (16:44 +0100)
Similar to what we do in libaomdec.c.

Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
libavcodec/libdav1d.c

index fd801c6fd5127c5565c8c3e9be9e0f8fcf47bb6b..3af7ef4edc0d283bbabb62b591709c0c6e809c54 100644 (file)
@@ -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: