Commit 8ea4a553 authored by Michael Niedermayer's avatar Michael Niedermayer

h264: move h264_set_parameter_from_sps() call up

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent afc03268
......@@ -2602,6 +2602,9 @@ static int decode_slice_header(H264Context *h, H264Context *h0)
h->current_sps_id = h->pps.sps_id;
h->sps = *h0->sps_buffers[h->pps.sps_id];
if ((ret = h264_set_parameter_from_sps(h)) < 0)
return ret;
}
s->avctx->profile = ff_h264_get_profile(&h->sps);
......@@ -2658,9 +2661,6 @@ static int decode_slice_header(H264Context *h, H264Context *h0)
s->avctx->sample_aspect_ratio = h->sps.sar;
av_assert0(s->avctx->sample_aspect_ratio.den);
if ((ret = h264_set_parameter_from_sps(h)) < 0)
return ret;
if (h->sps.video_signal_type_present_flag) {
s->avctx->color_range = h->sps.full_range>0 ? AVCOL_RANGE_JPEG
: AVCOL_RANGE_MPEG;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment