Mercurial > libavcodec.hg
comparison 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 |
comparison
equal
deleted
inserted
replaced
10825:dff431441c9c | 10826:59c35482189e |
---|---|
7207 sps->bit_depth_chroma = get_ue_golomb(&s->gb) + 8; | 7207 sps->bit_depth_chroma = get_ue_golomb(&s->gb) + 8; |
7208 sps->transform_bypass = get_bits1(&s->gb); | 7208 sps->transform_bypass = get_bits1(&s->gb); |
7209 decode_scaling_matrices(h, sps, NULL, 1, sps->scaling_matrix4, sps->scaling_matrix8); | 7209 decode_scaling_matrices(h, sps, NULL, 1, sps->scaling_matrix4, sps->scaling_matrix8); |
7210 }else{ | 7210 }else{ |
7211 sps->chroma_format_idc= 1; | 7211 sps->chroma_format_idc= 1; |
7212 sps->bit_depth_luma = 8; | |
7213 sps->bit_depth_chroma = 8; | |
7212 } | 7214 } |
7213 | 7215 |
7214 sps->log2_max_frame_num= get_ue_golomb(&s->gb) + 4; | 7216 sps->log2_max_frame_num= get_ue_golomb(&s->gb) + 4; |
7215 sps->poc_type= get_ue_golomb_31(&s->gb); | 7217 sps->poc_type= get_ue_golomb_31(&s->gb); |
7216 | 7218 |