mirror of
https://github.com/mpv-player/mpv
synced 2024-12-28 06:03:45 +01:00
too large extradata
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@13612 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
9617b9d987
commit
9f0ef64532
@ -347,7 +347,7 @@ static int init(sh_video_t *sh){
|
||||
#endif
|
||||
if (sh->ImageDesc &&
|
||||
sh->format == mmioFOURCC('S','V','Q','3')){
|
||||
avctx->extradata_size = *(int*)sh->ImageDesc;
|
||||
avctx->extradata_size = (*(int*)sh->ImageDesc) - sizeof(int);
|
||||
avctx->extradata = malloc(avctx->extradata_size);
|
||||
memcpy(avctx->extradata, ((int*)sh->ImageDesc)+1, avctx->extradata_size);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user