[MPlayer-cvslog] r37575 - trunk/libmpcodecs/ad_dk3adpcm.c
cehoyos
subversion at mplayerhq.hu
Tue Dec 29 19:48:48 CET 2015
Author: cehoyos
Date: Tue Dec 29 19:48:48 2015
New Revision: 37575
Log:
libmpcodecs/ad_dk3adpcm: Do not try to decode files with nBlockAlign == 0;
Fixes a crash with a file reported by Gustavo Grieco:
SIGSEGV.PC.555555722ce3.STACK.cb84bd2d6.CODE.1.ADDR.0xa.INSTR.movzwl_0xa\(%rax\)\,%ecx.fuzz
Modified:
trunk/libmpcodecs/ad_dk3adpcm.c
Modified: trunk/libmpcodecs/ad_dk3adpcm.c
==============================================================================
--- trunk/libmpcodecs/ad_dk3adpcm.c Tue Dec 29 19:38:30 2015 (r37574)
+++ trunk/libmpcodecs/ad_dk3adpcm.c Tue Dec 29 19:48:48 2015 (r37575)
@@ -92,6 +92,8 @@ static int preinit(sh_audio_t *sh_audio)
return 0;
sh_audio->audio_in_minsize=
sh_audio->ds->ss_mul = sh_audio->wf->nBlockAlign;
+ if (!sh_audio->audio_in_minsize)
+ return 0;
return 1;
}
More information about the MPlayer-cvslog
mailing list