mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-11 17:55:21 +00:00
h264: initialize cur_chroma_format_idc
This makes sure the various DSP contexts get properly initialized in ff_h264_set_parameter_from_sps() whatever the value of raw_bits_per_sample.
This commit is contained in:
parent
84f226a3bc
commit
050324d020
@ -604,6 +604,7 @@ av_cold int ff_h264_decode_init(AVCodecContext *avctx)
|
||||
|
||||
/* 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));
|
||||
memset(h->pps.scaling_matrix8, 16, 2 * 64 * sizeof(uint8_t));
|
||||
|
Loading…
Reference in New Issue
Block a user