Commit ee938906 authored by michael's avatar michael

check for error


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@4183 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 1c7a785c
...@@ -2628,7 +2628,10 @@ static int decode_frame(AVCodecContext * avctx, ...@@ -2628,7 +2628,10 @@ static int decode_frame(AVCodecContext * avctx,
} }
s->inbuf_ptr = s->inbuf; s->inbuf_ptr = s->inbuf;
s->frame_size = 0; s->frame_size = 0;
*data_size = out_size; if(out_size>=0)
*data_size = out_size;
else
av_log(avctx, AV_LOG_DEBUG, "Error while decoding mpeg audio frame\n"); //FIXME return -1 / but also return the number of bytes consumed
break; break;
} }
} }
......
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