Fix bogus pointer addition in the extraction of extradata from

BITMAPINFOHEADER.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19283 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
pacman 2006-07-31 22:19:48 +00:00
parent 8f8547ae86
commit 0265bf2065
1 changed files with 1 additions and 2 deletions

View File

@ -274,8 +274,7 @@ static int init(sh_video_t *sh){
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
{