Skip to content
Snippets Groups Projects
Commit c89c1d25 authored by Mike Melanson's avatar Mike Melanson
Browse files

handle 0-length buffers

Originally committed as revision 2731 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 2c8b796f
No related branches found
No related tags found
No related merge requests found
......@@ -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:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment