From 43564b799787749cf14a33a47e852d34de73758b Mon Sep 17 00:00:00 2001 From: James Darnley Date: Sun, 2 May 2010 16:30:50 -0700 Subject: [PATCH] Add field-order detection to y4m demuxer --- input/y4m.c | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/input/y4m.c b/input/y4m.c index 842b9860..fd421402 100644 --- a/input/y4m.c +++ b/input/y4m.c @@ -104,13 +104,21 @@ static int open_file( char *psz_filename, hnd_t *p_handle, video_info_t *info, c case 'I': /* Interlace type */ switch( *tokstart++ ) { - case 'p': break; - case '?': case 't': + info->interlaced = 1; + info->tff = 1; + break; case 'b': + info->interlaced = 1; + info->tff = 0; + break; case 'm': - default: info->interlaced = 1; + break; + //case '?': + //case 'p': + default: + break; } break; case 'F': /* Frame rate - 0:0 if unknown */ -- 2.40.0