ff_h264_decode_seq_parameter_set: dont set h->sps
authorMichael Niedermayer <michaelni@gmx.at>
Sun, 5 May 2013 22:03:57 +0000 (00:03 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Sun, 5 May 2013 22:37:47 +0000 (00:37 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/h264.c
libavcodec/h264_ps.c

index 05623fc..d4a6c6a 100644 (file)
@@ -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);
 
     h->dequant_coeff_pps = -1;
+    h->current_sps_id = -1;
 
     /* needed so that IDCT permutation is known early */
     if (CONFIG_ERROR_RESILIENCE)
index 0cf86c2..42a6903 100644 (file)
@@ -544,8 +544,6 @@ int ff_h264_decode_seq_parameter_set(H264Context *h){
 
     av_free(h->sps_buffers[sps_id]);
     h->sps_buffers[sps_id] = sps;
-    h->sps                 = *sps;
-    h->current_sps_id      = sps_id;
 
     return 0;
 fail: