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;