Commit 56954881 authored by melanson's avatar melanson

handle 0-length buffers


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@2732 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 49377f45
...@@ -444,6 +444,9 @@ static int adpcm_decode_frame(AVCodecContext *avctx, ...@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment