Commit f10acf57 authored by jai_menon's avatar jai_menon

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)




git-svn-id: file:///var/local/repositories/ffmpeg/trunk@21107 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent a85bec6e
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment