From 0ad42a7a3684bb011990d981665d70f954e9d039 Mon Sep 17 00:00:00 2001 From: Thibaut Mattern Date: Mon, 28 Jun 2004 22:44:57 +0000 Subject: Fix a stupid bug causing a segfault with huffyuv_sample.avi test stream. Let's see tomorrow how many segfaults are gone ;-) CVS patchset: 6759 CVS date: 2004/06/28 22:44:57 --- src/libffmpeg/video_decoder.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/libffmpeg/video_decoder.c b/src/libffmpeg/video_decoder.c index 81ee9cb28..c7c40fd21 100644 --- a/src/libffmpeg/video_decoder.c +++ b/src/libffmpeg/video_decoder.c @@ -17,7 +17,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * - * $Id: video_decoder.c,v 1.18 2004/05/23 16:34:42 jstembridge Exp $ + * $Id: video_decoder.c,v 1.19 2004/06/28 22:44:57 tmattern Exp $ * * xine video decoder plugin using ffmpeg * @@ -992,6 +992,7 @@ static void ff_decode_data (video_decoder_t *this_gen, buf_element_t *buf) { lprintf("no memcpy needed to accumulate data\n"); } else { ff_check_bufsize(this, this->size + buf->size); + ffbuf = this->buf; /* ff_check_bufsize can realloc this->buf */ xine_fast_memcpy (&this->buf[this->size], buf->content, buf->size); this->size += buf->size; lprintf("accumulate data into this->buf\n"); -- cgit v1.2.3