Mercurial > mplayer.hg
diff libmpcodecs/vd_ffmpeg.c @ 6665:3284abe2d73f
support avcontext based quant_store export
author | alex |
---|---|
date | Sun, 07 Jul 2002 16:12:30 +0000 |
parents | e97686ab386b |
children | 98c129b78f63 |
line wrap: on
line diff
--- a/libmpcodecs/vd_ffmpeg.c Sun Jul 07 15:21:30 2002 +0000 +++ b/libmpcodecs/vd_ffmpeg.c Sun Jul 07 16:12:30 2002 +0000 @@ -289,7 +289,15 @@ 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