support old libavcodec

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9932 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
michael 2003-04-18 22:12:36 +00:00
parent 1f72b97212
commit c93929e269
2 changed files with 6 additions and 0 deletions

View File

@ -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;
}

View File

@ -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);
}