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

K.Y.H git at videolan.org
Tue Nov 22 02:38:10 CET 2011


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

cook: fix apparent typo in extradata parsing

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
(cherry picked from commit 554caed2d397e137286f2cc71c6bac477b41fa96)

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

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

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

diff --git a/libavcodec/cook.c b/libavcodec/cook.c
index 192ec5b..96b8893 100644
--- a/libavcodec/cook.c
+++ b/libavcodec/cook.c
@@ -1079,7 +1079,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