[FFmpeg-devel] [PATCH] audec: remove nonsense upper limit for max channels
Paul B Mahol
onemda at gmail.com
Fri Jan 4 22:00:35 CET 2013
The overflow that caused division by zero can't happen anymore
and ff_pcm_read_packet() checks that validate block align is valid.
Signed-off-by: Paul B Mahol <onemda at gmail.com>
---
libavformat/au.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavformat/au.c b/libavformat/au.c
index 2e54a18..e93a78e 100644
--- a/libavformat/au.c
+++ b/libavformat/au.c
@@ -96,7 +96,7 @@ static int au_read_header(AVFormatContext *s)
return AVERROR_PATCHWELCOME;
}
- if (channels == 0 || channels > 64) {
+ if (channels == 0) {
av_log(s, AV_LOG_ERROR, "Invalid number of channels %d\n", channels);
return AVERROR_INVALIDDATA;
}
--
1.7.11.4
More information about the ffmpeg-devel
mailing list