From 04dd7cc6866e3946cae1c3ad1b3b221ed8a27930 Mon Sep 17 00:00:00 2001 From: Miguel Freitas Date: Wed, 11 Jun 2003 23:08:54 +0000 Subject: - add VO_INTERLACED_FLAG to get_frame - do not trust progressive_frame for detecting NTSC 3:2, quote: 'the alternating progressive_frame encoding problem. This is a problem where the progressive_frame flag alternates between true and false every frame, when it really should have been set to "true" all the time.' 'There is a lot of content that is affected by this issue, because it's caused by a dumb decision by a very big company that made a very popular MPEG encoder. They've since fixed the encoder, but there are apparently still authoring companies that use it, because the problem is on a lot of high-profile current discs, like Disney's "Monsters Inc." and "Beauty and the Beast".' http://www.hometheaterhifi.com/volume_8_2/dvd-benchmark-special-report-chroma-bug-4-2001.html CVS patchset: 5025 CVS date: 2003/06/11 23:08:54 --- src/libxinevdec/yuv_frames.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/libxinevdec/yuv_frames.c') diff --git a/src/libxinevdec/yuv_frames.c b/src/libxinevdec/yuv_frames.c index 6571aa12f..7f4ab6c2c 100644 --- a/src/libxinevdec/yuv_frames.c +++ b/src/libxinevdec/yuv_frames.c @@ -17,7 +17,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * - * $Id: yuv_frames.c,v 1.3 2003/06/06 19:42:04 miguelfreitas Exp $ + * $Id: yuv_frames.c,v 1.4 2003/06/11 23:08:55 miguelfreitas Exp $ * * dummy video decoder for uncompressed video frames as delivered by v4l */ @@ -63,7 +63,7 @@ static void yuv_frames_decode_data (video_decoder_t *this_gen, buf_element_t *bu buf->decoder_info[1], ASPECT_FULL, XINE_IMGFMT_YV12, - VO_BOTH_FIELDS); + VO_BOTH_FIELDS | VO_INTERLACED_FLAG); img->duration = 3600; img->pts = buf->pts; @@ -74,8 +74,6 @@ static void yuv_frames_decode_data (video_decoder_t *this_gen, buf_element_t *bu xine_fast_memcpy (img->base[1], buf->content+frame_size, frame_size/4); xine_fast_memcpy (img->base[2], buf->content+frame_size*5/4, frame_size/4); - img->progressive_frame = 0; - img->draw (img, this->stream); img->free (img); -- cgit v1.2.3