1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

handle 0-length buffers

Originally committed as revision 2732 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Mike Melanson 2004-01-31 17:40:28 +00:00
parent c89c1d2542
commit df72754d03

View File

@ -444,6 +444,9 @@ static int adpcm_decode_frame(AVCodecContext *avctx,
int decode_top_nibble_next = 0; int decode_top_nibble_next = 0;
int diff_channel; int diff_channel;
if (!buf_size)
return 0;
samples = data; samples = data;
src = buf; src = buf;