changeset 1768:45e99aa10395 libavcodec

handle 0-length buffers
author melanson
date Sat, 31 Jan 2004 17:40:28 +0000
parents 19ee8ddea820
children 1514fd5d434b
files adpcm.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/adpcm.c	Sat Jan 31 17:30:28 2004 +0000
+++ b/adpcm.c	Sat Jan 31 17:40:28 2004 +0000
@@ -444,6 +444,9 @@
     int decode_top_nibble_next = 0;
     int diff_channel;
 
+    if (!buf_size)
+        return 0;
+
     samples = data;
     src = buf;