summaryrefslogtreecommitdiff
path: root/libavcodec/h264.c
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2015-03-21 16:08:18 +0100
committerAnton Khirnov <anton@khirnov.net>2015-04-05 12:02:20 +0200
commit050324d020f843ce333276ebb6f27cc6026f37d0 (patch)
tree46597c1089711334301c6f03e08b3e31eab6988f /libavcodec/h264.c
parent84f226a3bcd8b39801a4c9051c033ab7d61aaf76 (diff)
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.
Diffstat (limited to 'libavcodec/h264.c')
-rw-r--r--libavcodec/h264.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/h264.c b/libavcodec/h264.c
index 660be1df6f..92541f614c 100644
--- a/libavcodec/h264.c
+++ b/libavcodec/h264.c
@@ -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));