Browse Source

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>
tags/n4.4
Derek Buitenhuis 5 years ago
parent
commit
649a6969f7
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      libavcodec/libdav1d.c

+ 1
- 0
libavcodec/libdav1d.c View 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:


Loading…
Cancel
Save