cook: fix apparent typo in extradata parsing
authorK.Y.H <kyh96403@hotmail.com>
Thu, 10 Nov 2011 23:30:39 +0000 (00:30 +0100)
committerAnton Khirnov <anton@khirnov.net>
Sat, 26 Nov 2011 07:33:31 +0000 (08:33 +0100)
Signed-off-by: Anton Khirnov <anton@khirnov.net>
libavcodec/cook.c

index 5a3822d..186c3e7 100644 (file)
@@ -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);