[FFmpeg-devel] [PATCH 1/4] wmaprodec: fix return value for too small packets.
Nicolas George
nicolas.george at normalesup.org
Tue Jul 31 18:34:43 CEST 2012
Signed-off-by: Nicolas George <nicolas.george at normalesup.org>
---
libavcodec/wmaprodec.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavcodec/wmaprodec.c b/libavcodec/wmaprodec.c
index b60a257..e07084a 100644
--- a/libavcodec/wmaprodec.c
+++ b/libavcodec/wmaprodec.c
@@ -1512,7 +1512,7 @@ static int decode_packet(AVCodecContext *avctx, void *data,
/** sanity check for the buffer length */
if (buf_size < avctx->block_align)
- return 0;
+ return AVERROR_INVALIDDATA;
s->next_packet_start = buf_size - avctx->block_align;
buf_size = avctx->block_align;
--
1.7.10.4
More information about the ffmpeg-devel
mailing list