Commit 04a59bfb authored by Michael Niedermayer's avatar Michael Niedermayer

segfault fix

Originally committed as revision 2754 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent b46243ed
...@@ -436,6 +436,9 @@ static int ra144_decode_frame(AVCodecContext * avctx, ...@@ -436,6 +436,9 @@ static int ra144_decode_frame(AVCodecContext * avctx,
int16_t *data = vdata; int16_t *data = vdata;
Real144_internal *glob=avctx->priv_data; Real144_internal *glob=avctx->priv_data;
if(buf_size==0)
return 0;
datao = data; datao = data;
unpack_input(buf,glob->unpacked); unpack_input(buf,glob->unpacked);
......
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