Skip to content
Snippets Groups Projects
Commit df72754d authored by Mike Melanson's avatar Mike Melanson
Browse files

handle 0-length buffers

Originally committed as revision 2732 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent c89c1d25
No related branches found
No related tags found
No related merge requests found
...@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment