Mercurial > mplayer.hg
changeset 10086:2002da982194
passing ImageDesc (stsd) to ffsvq3
author | michael |
---|---|
date | Sat, 10 May 2003 00:53:14 +0000 |
parents | f3bc060a1731 |
children | a4b17539f908 |
files | libmpcodecs/vd_ffmpeg.c |
diffstat | 1 files changed, 6 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/libmpcodecs/vd_ffmpeg.c Sat May 10 00:19:19 2003 +0000 +++ b/libmpcodecs/vd_ffmpeg.c Sat May 10 00:53:14 2003 +0000 @@ -251,6 +251,12 @@ 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;