[MPlayer-cvslog] r19283 - trunk/libmpcodecs/vd_ffmpeg.c

pacman subversion at mplayerhq.hu
Tue Aug 1 00:19:48 CEST 2006


Author: pacman
Date: Tue Aug  1 00:19:48 2006
New Revision: 19283

Modified:
   trunk/libmpcodecs/vd_ffmpeg.c

Log:
Fix bogus pointer addition in the extraction of extradata from
BITMAPINFOHEADER.


Modified: trunk/libmpcodecs/vd_ffmpeg.c
==============================================================================
--- trunk/libmpcodecs/vd_ffmpeg.c	(original)
+++ trunk/libmpcodecs/vd_ffmpeg.c	Tue Aug  1 00:19:48 2006
@@ -274,8 +274,7 @@
 	avctx->flags |= CODEC_FLAG_EXTERN_HUFF;
 	avctx->extradata_size = sh->bih->biSize-sizeof(BITMAPINFOHEADER);
 	avctx->extradata = av_mallocz(avctx->extradata_size + FF_INPUT_BUFFER_PADDING_SIZE);
-	memcpy(avctx->extradata, sh->bih+sizeof(BITMAPINFOHEADER),
-	    avctx->extradata_size);
+	memcpy(avctx->extradata, sh->bih+1, avctx->extradata_size);
 
 #if 0
 	{



More information about the MPlayer-cvslog mailing list