From 04a59bfb8d900b63ac2ab4e8a20550c660102461 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Fri, 6 Feb 2004 21:07:17 +0000 Subject: [PATCH] segfault fix Originally committed as revision 2754 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/ra144.c | 3 +++ 1 file changed, 3 insertions(+) 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);