Merge commit '9e500efdbe0deeff1602500ebc229a0a6b6bb1a2'
* commit '9e500efdbe0deeff1602500ebc229a0a6b6bb1a2': Add av_image_check_sar() and use it to validate SAR Conflicts: libavcodec/dpx.c libavcodec/dvdec.c libavcodec/ffv1dec.c libavcodec/utils.c libavutil/version.h Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@@ -293,9 +293,10 @@ static int set_sps(HEVCContext *s, const HEVCSPS *sps)
|
||||
s->avctx->width = sps->output_width;
|
||||
s->avctx->height = sps->output_height;
|
||||
s->avctx->pix_fmt = sps->pix_fmt;
|
||||
s->avctx->sample_aspect_ratio = sps->vui.sar;
|
||||
s->avctx->has_b_frames = sps->temporal_layer[sps->max_sub_layers - 1].num_reorder_pics;
|
||||
|
||||
ff_set_sar(s->avctx, sps->vui.sar);
|
||||
|
||||
if (sps->vui.video_signal_type_present_flag)
|
||||
s->avctx->color_range = sps->vui.video_full_range_flag ? AVCOL_RANGE_JPEG
|
||||
: AVCOL_RANGE_MPEG;
|
||||
|
Reference in New Issue
Block a user