handle 0-length buffers
Originally committed as revision 2731 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
2c8b796fa9
commit
c89c1d2542
@ -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…
x
Reference in New Issue
Block a user