aboutsummaryrefslogtreecommitdiffhomepage
path: root/libmpcodecs
diff options
context:
space:
mode:
authorGravatar reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-02-02 18:32:07 +0000
committerGravatar reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-02-02 18:32:07 +0000
commit240b743ebdfde9bfb9bbe311de9ab6afe9378cff (patch)
tree5bf5ec5eb6ae0e922b0b1c4856a2d11da255901d /libmpcodecs
parent3ddab299bfe75ee3ae81e026adb2920970e50d56 (diff)
Add global field dominance flag instead of duplicating this "everywhere"
Patch by Carl Eugen Hoyos (cehoyos (at) ag or at) git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22104 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpcodecs')
-rw-r--r--libmpcodecs/dec_video.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/libmpcodecs/dec_video.c b/libmpcodecs/dec_video.c
index 16f919e692..230ab0f69b 100644
--- a/libmpcodecs/dec_video.c
+++ b/libmpcodecs/dec_video.c
@@ -39,6 +39,8 @@ extern double vout_time_usage;
#include "cpudetect.h"
+int field_dominance=-1;
+
int divx_quality=0;
vd_functions_t* mpvdec=NULL;
@@ -382,6 +384,11 @@ video_time_usage+=tt;
if(!mpi || drop_frame) return NULL; // error / skipped frame
+ if (field_dominance == 0)
+ mpi->fields |= MP_IMGFIELD_TOP_FIRST;
+ else if (field_dominance == 1)
+ mpi->fields &= ~MP_IMGFIELD_TOP_FIRST;
+
if (correct_pts) {
sh_video->num_buffered_pts--;
sh_video->pts = sh_video->buffered_pts[sh_video->num_buffered_pts];