mirror of
https://github.com/mpv-player/mpv
synced 2025-01-26 09:33:30 +00:00
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:
parent
192e0f0fb6
commit
bd18a2b995
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user