changeset 9931:c4f7ffafb559

support old libavcodec
author michael
date Fri, 18 Apr 2003 22:12:36 +0000
parents 6e50b9573cfa
children 208fcee0aa2d
files libmpcodecs/vd_ffmpeg.c libmpcodecs/vf_pp.c
diffstat 2 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libmpcodecs/vd_ffmpeg.c	Fri Apr 18 21:52:53 2003 +0000
+++ b/libmpcodecs/vd_ffmpeg.c	Fri Apr 18 22:12:36 2003 +0000
@@ -662,7 +662,9 @@
     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;
 }
--- a/libmpcodecs/vf_pp.c	Fri Apr 18 21:52:53 2003 +0000
+++ b/libmpcodecs/vf_pp.c	Fri Apr 18 22:12:36 2003 +0000
@@ -129,7 +129,11 @@
 		    (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);
 }