---
libavcodec/atrac3.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/libavcodec/atrac3.c b/libavcodec/atrac3.c
index c30dffc..3a61d26 100644
--- a/libavcodec/atrac3.c
+++ b/libavcodec/atrac3.c
@@ -832,8 +832,7 @@ static int atrac3_decode_frame(AVCodecContext *avctx,
if (buf_size < avctx->block_align) {
av_log(avctx, AV_LOG_ERROR,
"Frame too small (%d bytes). Truncated file?\n", buf_size);
- *data_size = 0;
- return buf_size;
+ return AVERROR_INVALIDDATA;
}
out_size = 1024 * q->channels * av_get_bytes_per_sample(avctx->sample_fmt);
--
1.7.1
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel