Mercurial > libavcodec.hg
changeset 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 | dff431441c9c |
children | 3d011a01a6a0 |
files | h264.c |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
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;