Browse Source

handle 0-length buffers

Originally committed as revision 2732 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.5
Mike Melanson 21 years ago
parent
commit
df72754d03
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      libavcodec/adpcm.c

+ 3
- 0
libavcodec/adpcm.c View File

@@ -444,6 +444,9 @@ static int adpcm_decode_frame(AVCodecContext *avctx,
int decode_top_nibble_next = 0;
int diff_channel;

if (!buf_size)
return 0;

samples = data;
src = buf;



Loading…
Cancel
Save