Mercurial > mplayer.hg
diff libmpcodecs/dec_video.c @ 22086:8bf15e2ca61e
Add global field dominance flag instead of duplicating this "everywhere"
Patch by Carl Eugen Hoyos (cehoyos (at) ag or at)
| author | reimar |
|---|---|
| date | Fri, 02 Feb 2007 18:32:07 +0000 |
| parents | 213b5c14bba7 |
| children | 1b1761cbba3b |
line wrap: on
line diff
--- a/libmpcodecs/dec_video.c Thu Feb 01 22:00:30 2007 +0000 +++ b/libmpcodecs/dec_video.c Fri Feb 02 18:32:07 2007 +0000 @@ -39,6 +39,8 @@ #include "cpudetect.h" +int field_dominance=-1; + int divx_quality=0; vd_functions_t* mpvdec=NULL; @@ -382,6 +384,11 @@ 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];
