Commit 49377f45 authored by melanson's avatar melanson

handle 0-length buffers


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@2731 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent c31ac1f4
...@@ -125,6 +125,9 @@ static int dpcm_decode_frame(AVCodecContext *avctx, ...@@ -125,6 +125,9 @@ static int dpcm_decode_frame(AVCodecContext *avctx,
unsigned char byte; unsigned char byte;
short diff; short diff;
if (!buf_size)
return 0;
switch(avctx->codec->id) { switch(avctx->codec->id) {
case CODEC_ID_ROQ_DPCM: case CODEC_ID_ROQ_DPCM:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment