diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2004-02-06 21:07:17 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2004-02-06 21:07:17 +0000 |
commit | 04a59bfb8d900b63ac2ab4e8a20550c660102461 (patch) | |
tree | 9ff85b1e00ba012748244bc0333ea5febf6b4bc5 | |
parent | b46243ed1c54707708140148dc9426ed592e19b5 (diff) | |
download | ffmpeg-04a59bfb8d900b63ac2ab4e8a20550c660102461.tar.gz |
segfault fix
Originally committed as revision 2754 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavcodec/ra144.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libavcodec/ra144.c b/libavcodec/ra144.c index 27b9ae8f81..65829b6a33 100644 --- a/libavcodec/ra144.c +++ b/libavcodec/ra144.c @@ -436,6 +436,9 @@ static int ra144_decode_frame(AVCodecContext * avctx, int16_t *data = vdata; Real144_internal *glob=avctx->priv_data; + if(buf_size==0) + return 0; + datao = data; unpack_input(buf,glob->unpacked); |