[libav-devel] [PATCH 01/18] cook: fix apparent typo in extradata parsing
Kostya Shishkov
kostya.shishkov at gmail.com
Thu Nov 24 12:11:21 CET 2011
On Thu, Nov 24, 2011 at 11:26:27AM +0100, Anton Khirnov wrote:
> From: "K.Y.H" <kyh96403 at hotmail.com>
>
> Signed-off-by: Anton Khirnov <anton at khirnov.net>
> ---
> libavcodec/cook.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/libavcodec/cook.c b/libavcodec/cook.c
> index 5a3822d..186c3e7 100644
> --- a/libavcodec/cook.c
> +++ b/libavcodec/cook.c
> @@ -1075,7 +1075,7 @@ static av_cold int cook_decode_init(AVCodecContext *avctx)
> q->subpacket[s].subbands = bytestream_get_be16(&edata_ptr);
> extradata_size -= 8;
> }
> - if (avctx->extradata_size >= 8){
> + if (extradata_size >= 8) {
> bytestream_get_be32(&edata_ptr); //Unknown unused
> q->subpacket[s].js_subband_start = bytestream_get_be16(&edata_ptr);
> q->subpacket[s].js_vlc_bits = bytestream_get_be16(&edata_ptr);
> --
looks OK
More information about the libav-devel
mailing list