diff options
author | Carl Eugen Hoyos <cehoyos@ag.or.at> | 2012-05-05 13:14:36 +0200 |
---|---|---|
committer | Carl Eugen Hoyos <cehoyos@ag.or.at> | 2012-05-05 13:14:36 +0200 |
commit | 849172882c117fad2b649ae6207f010735a9f2de (patch) | |
tree | 60f861ffd65eadb1a5ddaff3fc0b6967f16514cd /libavcodec/alsdec.c | |
parent | 45a7b0674dba25295e439b50797e5231ad16b3b7 (diff) | |
download | ffmpeg-streaming-849172882c117fad2b649ae6207f010735a9f2de.zip ffmpeg-streaming-849172882c117fad2b649ae6207f010735a9f2de.tar.gz |
alsdec.c: Simplify error check before calling rice decoder.
Reviewed-by: Thilo Borgmann
Diffstat (limited to 'libavcodec/alsdec.c')
-rw-r--r-- | libavcodec/alsdec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/alsdec.c b/libavcodec/alsdec.c index 20ef407..625d111 100644 --- a/libavcodec/alsdec.c +++ b/libavcodec/alsdec.c @@ -652,7 +652,7 @@ static int read_var_block_data(ALSDecContext *ctx, ALSBlockData *bd) s[k] = s[k - 1] + decode_rice(gb, 0); } for (k = 1; k < sub_blocks; k++) - if (s[k] < 0 || s[k] > 32) { + if (s[k] > 32) { av_log(avctx, AV_LOG_ERROR, "k invalid for rice code.\n"); return -1; } |