handle 0-length buffers

Originally committed as revision 2731 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Mike Melanson 2004-01-31 17:30:28 +00:00
parent 2c8b796fa9
commit c89c1d2542

View File

@ -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: