projects
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2c8b796
)
handle 0-length buffers
author
Mike Melanson
<mike@multimedia.cx>
Sat, 31 Jan 2004 17:30:28 +0000
(17:30 +0000)
committer
Mike Melanson
<mike@multimedia.cx>
Sat, 31 Jan 2004 17:30:28 +0000
(17:30 +0000)
Originally committed as revision 2731 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/dpcm.c
patch
|
blob
|
blame
|
history
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: