handle 0-length buffers

Originally committed as revision 2731 to svn://svn.ffmpeg.org/ffmpeg/trunk
pull/126/head
Mike Melanson 21 years ago
parent 2c8b796fa9
commit c89c1d2542
  1. 3
      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:

Loading…
Cancel
Save