mirror of
https://github.com/mpv-player/mpv
synced 2025-03-18 08:39:01 +00:00
support old libavcodec
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9932 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
1f72b97212
commit
c93929e269
@ -662,7 +662,9 @@ static mp_image_t* decode(sh_video_t *sh,void* data,int len,int flags){
|
||||
mpi->qscale =pic->qscale_table;
|
||||
mpi->qstride=pic->qstride;
|
||||
mpi->pict_type=pic->pict_type;
|
||||
#if LIBAVCODEC_BUILD >= 4664
|
||||
mpi->qscale_type= pic->qscale_type;
|
||||
#endif
|
||||
|
||||
return mpi;
|
||||
}
|
||||
|
@ -129,7 +129,11 @@ static int put_image(struct vf_instance_s* vf, mp_image_t *mpi){
|
||||
(mpi->w+7)&(~7),mpi->h,
|
||||
mpi->qscale, mpi->qstride,
|
||||
vf->priv->ppMode[ vf->priv->pp ], vf->priv->context,
|
||||
#ifdef PP_PICT_TYPE_QP2
|
||||
mpi->pict_type | (mpi->qscale_type ? PP_PICT_TYPE_QP2 : 0));
|
||||
#else
|
||||
mpi->pict_type);
|
||||
#endif
|
||||
}
|
||||
return vf_next_put_image(vf,vf->priv->dmpi);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user