You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
avcodec/diracdec: fix aspect ratio (it was lost after efcc8fddd6
)
Reviewed-by: Hendrik Leppkes <h.leppkes@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
@@ -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_dimensions(avctx, dsh->width, dsh->height);
|
||||||
|
ff_set_sar(avctx, dsh->sample_aspect_ratio);
|
||||||
avctx->pix_fmt = dsh->pix_fmt;
|
avctx->pix_fmt = dsh->pix_fmt;
|
||||||
avctx->color_range = dsh->color_range;
|
avctx->color_range = dsh->color_range;
|
||||||
avctx->color_trc = dsh->color_trc;
|
avctx->color_trc = dsh->color_trc;
|
||||||
|
Reference in New Issue
Block a user