[FFmpeg-cvslog] cook: fix apparent typo in extradata parsing

K.Y.H git at videolan.org
Fri Nov 11 01:58:20 CET 2011


ffmpeg | branch: master | K.Y.H <kyh96403 at hotmail.com> | Fri Nov 11 00:30:39 2011 +0100| [554caed2d397e137286f2cc71c6bac477b41fa96] | committer: Michael Niedermayer

cook: fix apparent typo in extradata parsing

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=554caed2d397e137286f2cc71c6bac477b41fa96
---

 libavcodec/cook.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libavcodec/cook.c b/libavcodec/cook.c
index 9cfd396..4c75013 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);



More information about the ffmpeg-cvslog mailing list