summaryrefslogtreecommitdiff
path: root/libavcodec/diracdec.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2015-12-17 16:01:21 +0100
committerMichael Niedermayer <michael@niedermayer.cc>2015-12-17 19:00:18 +0100
commitffad6f6b89624c1df163cb81846ca1d9b7363e2e (patch)
treedf89d16f87209c7186e7598da332705b714687f1 /libavcodec/diracdec.c
parent02e9ba42eb36c587bf83ba3d38ff591a4df6ba8f (diff)
avcodec/diracdec: fix aspect ratio (it was lost after efcc8fddd6b7d1f931ff349e195d78c3c943d7fd)
Reviewed-by: Hendrik Leppkes <h.leppkes@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavcodec/diracdec.c')
-rw-r--r--libavcodec/diracdec.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/diracdec.c b/libavcodec/diracdec.c
index 000abf7d5a..f35fe453ee 100644
--- a/libavcodec/diracdec.c
+++ b/libavcodec/diracdec.c
@@ -1990,6 +1990,7 @@ static int dirac_decode_data_unit(AVCodecContext *avctx, const uint8_t *buf, int
}
ff_set_dimensions(avctx, dsh->width, dsh->height);
+ ff_set_sar(avctx, dsh->sample_aspect_ratio);
avctx->pix_fmt = dsh->pix_fmt;
avctx->color_range = dsh->color_range;
avctx->color_trc = dsh->color_trc;