[FFmpeg-devel] [PATCH] Always initialize bit_depth_luma and bit_depth_chroma in H264 decoder.
Michael Niedermayer
michaelni
Fri Jan 8 22:10:49 CET 2010
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
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
The greatest way to live with honor in this world is to be what we pretend
to be. -- Socrates
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20100108/ea864700/attachment.pgp>
More information about the ffmpeg-devel
mailing list