mirror of
https://github.com/mpv-player/mpv
synced 2025-01-08 16:10:29 +00:00
passing ImageDesc (stsd) to ffsvq3
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10087 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
7c0ad49671
commit
01b60d7c6e
@ -251,6 +251,12 @@ static int init(sh_video_t *sh){
|
||||
avctx->extradata = malloc(avctx->extradata_size);
|
||||
memcpy(avctx->extradata, sh->bih+1, avctx->extradata_size);
|
||||
}
|
||||
if (sh->ImageDesc &&
|
||||
sh->format == mmioFOURCC('S','V','Q','3')){
|
||||
avctx->extradata_size = *(int*)sh->ImageDesc;
|
||||
avctx->extradata = malloc(avctx->extradata_size);
|
||||
memcpy(avctx->extradata, ((int*)sh->ImageDesc)+1, avctx->extradata_size);
|
||||
}
|
||||
|
||||
if(sh->bih)
|
||||
avctx->bits_per_sample= sh->bih->biBitCount;
|
||||
|
Loading…
Reference in New Issue
Block a user