summaryrefslogtreecommitdiff
path: root/libavcodec/h264.c
diff options
context:
space:
mode:
authorLaurent Aimar <fenrir@via.ecp.fr>2010-01-09 07:57:26 +0000
committerJai Menon <jmenon86@gmail.com>2010-01-09 07:57:26 +0000
commitb090930d432957a06f78701212b3024f93958f17 (patch)
treedd454b4b85d2826b868e4fa0da023820cec9cae7 /libavcodec/h264.c
parent8600106ac2a38aa8dc54b6f53473d6b088e8dc8c (diff)
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) Originally committed as revision 21107 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/h264.c')
-rw-r--r--libavcodec/h264.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/h264.c b/libavcodec/h264.c
index 8f6670ce7c..bc79f66b8e 100644
--- a/libavcodec/h264.c
+++ b/libavcodec/h264.c
@@ -7209,6 +7209,8 @@ int ff_h264_decode_seq_parameter_set(H264Context *h){
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;