projects
/
libav.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
handle 0-length buffers
[libav.git]
/
libavcodec
/
dpcm.c
diff --git
a/libavcodec/dpcm.c
b/libavcodec/dpcm.c
index
ef4ccf8
..
b59a9cd
100644
(file)
--- a/
libavcodec/dpcm.c
+++ b/
libavcodec/dpcm.c
@@
-125,6
+125,9
@@
static int dpcm_decode_frame(AVCodecContext *avctx,
unsigned char byte;
short diff;
+ if (!buf_size)
+ return 0;
+
switch(avctx->codec->id) {
case CODEC_ID_ROQ_DPCM: