[FFmpeg-devel] [PATCH 1/3] alsdec: Use AVERROR_INVALIDDATA in read_const_block_data
Michael Niedermayer
michaelni at gmx.at
Thu Dec 13 03:08:07 CET 2012
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
---
libavcodec/alsdec.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavcodec/alsdec.c b/libavcodec/alsdec.c
index 1465129..73c6660 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)
--
1.7.9.5
More information about the ffmpeg-devel
mailing list