# HG changeset patch # User jai_menon # Date 1263023846 0 # Node ID 59c35482189ed79377adbcb4888656c4cbb31a1b # Parent dff431441c9cbaed06330a96e11aa2544f63a789 Always initialize bit_depth_luma and bit_depth_chroma in the H264 decoder which allows their usage without checking profile_idc. Patch by Laurent Aimar (fenrir (AT) videolan org) diff -r dff431441c9c -r 59c35482189e h264.c --- a/h264.c Sat Jan 09 03:31:13 2010 +0000 +++ b/h264.c Sat Jan 09 07:57:26 2010 +0000 @@ -7209,6 +7209,8 @@ decode_scaling_matrices(h, sps, NULL, 1, sps->scaling_matrix4, sps->scaling_matrix8); }else{ sps->chroma_format_idc= 1; + sps->bit_depth_luma = 8; + sps->bit_depth_chroma = 8; } sps->log2_max_frame_num= get_ue_golomb(&s->gb) + 4;