[FFmpeg-devel] [PATCH] Always initialize bit_depth_luma and bit_depth_chroma in H264 decoder.

Jai Menon jmenon86
Sat Jan 9 08:57:57 CET 2010


On Sat, Jan 9, 2010 at 2:40 AM, Michael Niedermayer <michaelni at gmx.at> wrote:
> On Fri, Jan 08, 2010 at 08:26:17PM +0100, Laurent Aimar wrote:
>> As the title says.
>>
>> --
>> fenrir
>>
>
>> ?h264.c | ? ?2 ++
>> ?1 file changed, 2 insertions(+)
>> 7da58ac438a0567148b2122cfebd4afa9edc487b ?ffmpeg-h264-bitdepth.patch
>> commit c12ffd88f0803ccc45de89f991003259fa158ba7
>> Author: Laurent Aimar <fenrir at videolan.org>
>> Date: ? Fri Jan 8 20:19:35 2010 +0100
>>
>> ? ? Always initialize bit_depth_luma and bit_depth_chroma in H264 decoder.
>>
>> ? ? It allows to use them without checking profile_idc.
>>
>> diff --git a/libavcodec/h264.c b/libavcodec/h264.c
>> index 8f6670c..bc79f66 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;
>> ? ? ?}
>
> ok

Applied.

-- 
Jai Menon



More information about the ffmpeg-devel mailing list