projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
78ad664
)
ac3dec: fix coupling range check. the start subband must be less than
author
Justin Ruggles
<justin.ruggles@gmail.com>
Sat, 16 May 2009 17:02:44 +0000
(17:02 +0000)
committer
Justin Ruggles
<justin.ruggles@gmail.com>
Sat, 16 May 2009 17:02:44 +0000
(17:02 +0000)
the end subband.
Originally committed as revision 18857 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/ac3dec.c
patch
|
blob
|
history
diff --git
a/libavcodec/ac3dec.c
b/libavcodec/ac3dec.c
index
7d9d014
..
bc39fb3
100644
(file)
--- a/
libavcodec/ac3dec.c
+++ b/
libavcodec/ac3dec.c
@@
-872,8
+872,8
@@
static int decode_audio_block(AC3DecodeContext *s, int blk)
/* TODO: modify coupling end freq if spectral extension is used */
cpl_start_subband = get_bits(gbc, 4);
cpl_end_subband = get_bits(gbc, 4) + 3;
- if (cpl_start_subband > cpl_end_subband) {
- av_log(s->avctx, AV_LOG_ERROR, "invalid coupling range (%d > %d)\n",
+ if (cpl_start_subband >
=
cpl_end_subband) {
+ av_log(s->avctx, AV_LOG_ERROR, "invalid coupling range (%d >
=
%d)\n",
cpl_start_subband, cpl_end_subband);
return -1;
}