[FFmpeg-cvslog] r16889 - trunk/libavformat/mxfenc.c

bcoudurier subversion
Sat Jan 31 07:42:48 CET 2009


Author: bcoudurier
Date: Sat Jan 31 07:42:47 2009
New Revision: 16889

Log:
parse mpeg2 progressive frame flag

Modified:
   trunk/libavformat/mxfenc.c

Modified: trunk/libavformat/mxfenc.c
==============================================================================
--- trunk/libavformat/mxfenc.c	Sat Jan 31 07:32:12 2009	(r16888)
+++ trunk/libavformat/mxfenc.c	Sat Jan 31 07:42:47 2009	(r16889)
@@ -58,6 +58,7 @@ typedef struct {
     const UID *codec_ul;
     int64_t duration;
     int order; ///< interleaving order if dts are equal
+    int interlaced; ///< wether picture is interlaced
 } MXFStreamContext;
 
 typedef struct {
@@ -810,6 +811,8 @@ static int mxf_parse_mpeg2_frame(AVForma
             if (i + 2 < pkt->size && (pkt->data[i+1] & 0xf0) == 0x10) { // seq ext
                 st->codec->profile = pkt->data[i+1] & 0x07;
                 st->codec->level   = pkt->data[i+2] >> 4;
+            } else if (i + 5 < pkt->size && (pkt->data[i+1] & 0xf0) == 0x80) { // pict coding ext
+                sc->interlaced = !(pkt->data[i+5] & 0x80); // progressive frame
                 break;
             }
         }




More information about the ffmpeg-cvslog mailing list