diff h264.c @ 10826:59c35482189e libavcodec

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)
author jai_menon
date Sat, 09 Jan 2010 07:57:26 +0000
parents 4b790cd2c245
children 46a247e54d6e
line wrap: on
line diff
--- 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;