# HG changeset patch # User michael # Date 1052527994 0 # Node ID 2002da9821943ccbdacf0310590568d67c07ed0f # Parent f3bc060a1731fb077bddaaec5ac4985dcd67d17b passing ImageDesc (stsd) to ffsvq3 diff -r f3bc060a1731 -r 2002da982194 libmpcodecs/vd_ffmpeg.c --- 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;