Browse Source

ff_h264_decode_seq_parameter_set: dont set h->sps

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n2.0
Michael Niedermayer 12 years ago
parent
commit
edabbfbaf2
2 changed files with 1 additions and 2 deletions
  1. +1
    -0
      libavcodec/h264.c
  2. +0
    -2
      libavcodec/h264_ps.c

+ 1
- 0
libavcodec/h264.c View 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)


+ 0
- 2
libavcodec/h264_ps.c View 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:


Loading…
Cancel
Save