diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2015-04-05 21:11:25 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2015-04-05 21:11:25 +0200 |
commit | 14d241b19dcde7808de7c3c631886f25f91f2008 (patch) | |
tree | e5df42c7d81fe8b5a88b354b3a0444c1ca2a03ac | |
parent | 68f48406069e9aff0c01c96671f7c58de166e1f8 (diff) | |
parent | 43fd3dd80ca2d1c2ccf6a7b7632db544c809c690 (diff) | |
download | ffmpeg-14d241b19dcde7808de7c3c631886f25f91f2008.tar.gz |
Merge commit '43fd3dd80ca2d1c2ccf6a7b7632db544c809c690'
* commit '43fd3dd80ca2d1c2ccf6a7b7632db544c809c690':
h264: drop redundant initialization in init()
Conflicts:
libavcodec/h264.c
Merged-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavcodec/h264.c | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/libavcodec/h264.c b/libavcodec/h264.c index 933c582341..ba2fc40792 100644 --- a/libavcodec/h264.c +++ b/libavcodec/h264.c @@ -616,20 +616,8 @@ av_cold int ff_h264_decode_init(AVCodecContext *avctx) h->avctx = avctx; - h->bit_depth_luma = 8; - h->chroma_format_idc = 1; - - ff_h264dsp_init(&h->h264dsp, 8, 1); - av_assert0(h->sps.bit_depth_chroma == 0); - ff_h264chroma_init(&h->h264chroma, h->sps.bit_depth_chroma); - ff_h264qpel_init(&h->h264qpel, 8); - 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 */ - ff_videodsp_init(&h->vdsp, 8); h->cur_chroma_format_idc = -1; memset(h->pps.scaling_matrix4, 16, 6 * 16 * sizeof(uint8_t)); @@ -651,10 +639,6 @@ av_cold int ff_h264_decode_init(AVCodecContext *avctx) ff_init_cabac_states(); - h->pixel_shift = 0; - h->cur_bit_depth_luma = - h->sps.bit_depth_luma = avctx->bits_per_raw_sample = 8; - h->nb_slice_ctx = (avctx->active_thread_type & FF_THREAD_SLICE) ? H264_MAX_THREADS : 1; h->slice_ctx = av_mallocz_array(h->nb_slice_ctx, sizeof(*h->slice_ctx)); if (!h->slice_ctx) { |