[x264-devel] commit: Add field-order detection to y4m demuxer (James Darnley )

git at videolan.org git at videolan.org
Thu May 6 07:49:22 CEST 2010


x264 | branch: master | James Darnley <james.darnley at gmail.com> | Sun May  2 16:30:50 2010 -0700| [8508412c878b4823906cd5c67b46698ce9bc297d] | committer: Jason Garrett-Glaser 

Add field-order detection to y4m demuxer

> http://git.videolan.org/gitweb.cgi/x264.git/?a=commit;h=8508412c878b4823906cd5c67b46698ce9bc297d
---

 input/y4m.c |   14 +++++++++++---
 1 files changed, 11 insertions(+), 3 deletions(-)

diff --git a/input/y4m.c b/input/y4m.c
index 842b986..fd42140 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 */



More information about the x264-devel mailing list