support avcontext based quant_store export

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@6666 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
alex 2002-07-07 16:12:30 +00:00
parent 192e0f0fb6
commit bd18a2b995
1 changed files with 9 additions and 1 deletions

View File

@ -289,7 +289,15 @@ static mp_image_t* decode(sh_video_t *sh,void* data,int len,int flags){
mpi->stride[2]*=2;
}
#ifdef FF_POSTPROCESS
/* to comfirm with newer lavc style */
#if !defined(FF_POSTPROCESS) && (LIBAVCODEC_BUILD > 4612)
mpi->qscale=avctx->quant_store;
#if LIBAVCODEC_BUILD > 4613
mpi->qstride=avctx->qstride;
#else
mpi->qstride=MBC+1;
#endif
#else ifdef FF_POSTPROCESS
mpi->qscale=&quant_store[0][0];
mpi->qstride=MBC+1;
#endif