OSDN Git Service

aasc: return correct buffer size from aasc_decode_frame
[android-x86/external-ffmpeg.git] / libavcodec / aasc.c
index 38658f8..a23f9b3 100644 (file)
@@ -137,7 +137,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)