Signed-off-by: Peter Ross <[email protected]> --- Thanks Reimar. libavformat/aiffdec.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/libavformat/aiffdec.c b/libavformat/aiffdec.c
index 8dbed32..301d90f 100644
--- a/libavformat/aiffdec.c
+++ b/libavformat/aiffdec.c
@@ -116,12 +116,12 @@ static unsigned int get_aiff_header(AVFormatContext *s,
int size,
size -= 18;
/* get codec id for AIFF-C */
- if (version == AIFF_C_VERSION1 && size >= 4) {
+ if (size < 4) {
+ version = AIFF;
+ } else if (version == AIFF_C_VERSION1) {
codec->codec_tag = avio_rl32(pb);
codec->codec_id = ff_codec_get_id(ff_codec_aiff_tags,
codec->codec_tag);
size -= 4;
- } else {
- version = AIFF;
}
if (version != AIFF_C_VERSION1 || codec->codec_id ==
AV_CODEC_ID_PCM_S16BE) {
--
2.1.0
-- Peter
(A907 E02F A6E5 0CD2 34CD 20D2 6760 79C5 AC40 DD6B)
signature.asc
Description: Digital signature
_______________________________________________ ffmpeg-devel mailing list [email protected] http://ffmpeg.org/mailman/listinfo/ffmpeg-devel
