Mercurial > mplayer.hg
changeset 6665:3284abe2d73f
support avcontext based quant_store export
author | alex |
---|---|
date | Sun, 07 Jul 2002 16:12:30 +0000 |
parents | b802dd0812f1 |
children | 349138a7b414 |
files | libmpcodecs/vd_ffmpeg.c |
diffstat | 1 files changed, 9 insertions(+), 1 deletions(-) [+] |
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