mirror of
https://github.com/mpv-player/mpv
synced 2024-08-28 05:46:13 +02:00
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:
parent
8f8547ae86
commit
0265bf2065
@ -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
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user