aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-12-13 03:03:56 +0100
committerMichael Niedermayer <michaelni@gmx.at>2012-12-13 13:58:52 +0100
commit79bfba14b78f126aa75a6d15cb6a5ce3c428eaf1 (patch)
treecebc05f5d794dc69057192fae629886bc150982d
parentd7117138cf71af36704975c020de8b6a7a501f67 (diff)
downloadffmpeg-79bfba14b78f126aa75a6d15cb6a5ce3c428eaf1.tar.gz
alsdec: Use AVERROR_INVALIDDATA in read_const_block_data
Reviewed-by: Thilo Borgmann <thilo.borgmann@googlemail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavcodec/alsdec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/alsdec.c b/libavcodec/alsdec.c
index 1465129f8c..73c6660a55 100644
--- a/libavcodec/alsdec.c
+++ b/libavcodec/alsdec.c
@@ -560,7 +560,7 @@ static int read_const_block_data(ALSDecContext *ctx, ALSBlockData *bd)
GetBitContext *gb = &ctx->gb;
if (bd->block_length <= 0)
- return -1;
+ return AVERROR_INVALIDDATA;
*bd->raw_samples = 0;
*bd->const_block = get_bits1(gb); // 1 = constant value, 0 = zero block (silence)