From 01b60d7c6e20aabe1986505c4aff34dc09f54a45 Mon Sep 17 00:00:00 2001 From: michael Date: Sat, 10 May 2003 00:53:14 +0000 Subject: [PATCH] passing ImageDesc (stsd) to ffsvq3 git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10087 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libmpcodecs/vd_ffmpeg.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/libmpcodecs/vd_ffmpeg.c b/libmpcodecs/vd_ffmpeg.c index 61d08a12db..cd1e635a0c 100644 --- a/libmpcodecs/vd_ffmpeg.c +++ b/libmpcodecs/vd_ffmpeg.c @@ -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;