Mercurial > mplayer.hg
view libmpcodecs/dec_audio.h @ 7352:757e876d36fe
Off-by-one error allocating bitmap, when (width*height) % 8 != 0
The code was writing beyond allocated memory, and could corrupt malloc heap.
author | jkeil |
---|---|
date | Tue, 10 Sep 2002 12:38:19 +0000 |
parents | 1eadce15446c |
children | 6a2b6f3d619c |
line wrap: on
line source
// dec_audio.c: extern void afm_help(); extern int init_audio(sh_audio_t *sh_audio); extern int decode_audio(sh_audio_t *sh_audio,unsigned char *buf,int minlen,int maxlen); extern void resync_audio_stream(sh_audio_t *sh_audio); extern void skip_audio_frame(sh_audio_t *sh_audio); extern void uninit_audio(sh_audio_t *sh_audio);