[FFmpeg-cvslog] r21107 - trunk/libavcodec/h264.c
jai_menon
subversion
Sat Jan 9 08:57:26 CET 2010
Author: jai_menon
Date: Sat Jan 9 08:57:26 2010
New Revision: 21107
Log:
Always initialize bit_depth_luma and bit_depth_chroma in H264 decoder
which allows there usage without checking profile_idc.
Patch by Laurent Aimar (fenrir (AT) videolan org)
Modified:
trunk/libavcodec/h264.c
Modified: trunk/libavcodec/h264.c
==============================================================================
--- trunk/libavcodec/h264.c Sat Jan 9 04:31:13 2010 (r21106)
+++ trunk/libavcodec/h264.c Sat Jan 9 08:57:26 2010 (r21107)
@@ -7209,6 +7209,8 @@ int ff_h264_decode_seq_parameter_set(H26
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;
More information about the ffmpeg-cvslog
mailing list