aasc: return correct buffer size from aasc_decode_frame
authorAndreas Cadhalpun <andreas.cadhalpun@googlemail.com>
Thu, 16 Apr 2015 17:12:02 +0000 (19:12 +0200)
committerAnton Khirnov <anton@khirnov.net>
Tue, 5 May 2015 08:18:59 +0000 (10:18 +0200)
CC: libav-stable@libav.org
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Signed-off-by: Anton Khirnov <anton@khirnov.net>
libavcodec/aasc.c

index 468e394..1e457ce 100644 (file)
@@ -97,7 +97,7 @@ static int aasc_decode_frame(AVCodecContext *avctx,
         return ret;
 
     /* report that the buffer was completely consumed */
-    return buf_size;
+    return avpkt->size;
 }
 
 static av_cold int aasc_decode_end(AVCodecContext *avctx)