projects
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
c89c1d2
)
handle 0-length buffers
author
Mike Melanson
<mike@multimedia.cx>
Sat, 31 Jan 2004 17:40:28 +0000
(17:40 +0000)
committer
Mike Melanson
<mike@multimedia.cx>
Sat, 31 Jan 2004 17:40:28 +0000
(17:40 +0000)
Originally committed as revision 2732 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/adpcm.c
patch
|
blob
|
blame
|
history
diff --git
a/libavcodec/adpcm.c
b/libavcodec/adpcm.c
index
c3ae66e
..
bced66f
100644
(file)
--- a/
libavcodec/adpcm.c
+++ b/
libavcodec/adpcm.c
@@
-444,6
+444,9
@@
static int adpcm_decode_frame(AVCodecContext *avctx,
int decode_top_nibble_next = 0;
int diff_channel;
int decode_top_nibble_next = 0;
int diff_channel;
+ if (!buf_size)
+ return 0;
+
samples = data;
src = buf;
samples = data;
src = buf;