Commit edabbfba authored by Michael Niedermayer's avatar Michael Niedermayer

ff_h264_decode_seq_parameter_set: dont set h->sps

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 26482ae7
...@@ -1478,6 +1478,7 @@ av_cold int ff_h264_decode_init(AVCodecContext *avctx) ...@@ -1478,6 +1478,7 @@ av_cold int ff_h264_decode_init(AVCodecContext *avctx)
ff_h264_pred_init(&h->hpc, h->avctx->codec_id, 8, 1); ff_h264_pred_init(&h->hpc, h->avctx->codec_id, 8, 1);
h->dequant_coeff_pps = -1; h->dequant_coeff_pps = -1;
h->current_sps_id = -1;
/* needed so that IDCT permutation is known early */ /* needed so that IDCT permutation is known early */
if (CONFIG_ERROR_RESILIENCE) if (CONFIG_ERROR_RESILIENCE)
......
...@@ -544,8 +544,6 @@ int ff_h264_decode_seq_parameter_set(H264Context *h){ ...@@ -544,8 +544,6 @@ int ff_h264_decode_seq_parameter_set(H264Context *h){
av_free(h->sps_buffers[sps_id]); av_free(h->sps_buffers[sps_id]);
h->sps_buffers[sps_id] = sps; h->sps_buffers[sps_id] = sps;
h->sps = *sps;
h->current_sps_id = sps_id;
return 0; return 0;
fail: fail:
......
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