[FFmpeg-cvslog] mxfdec: Parse ThisPartition

Tomas Härdin git at videolan.org
Thu Dec 8 21:36:27 CET 2011


ffmpeg | branch: master | Tomas Härdin <tomas.hardin at codemill.se> | Wed Dec  7 17:43:36 2011 +0100| [e5f9c8927bcb5ad1477082386645350f5892c8ce] | committer: Tomas Härdin

mxfdec: Parse ThisPartition

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=e5f9c8927bcb5ad1477082386645350f5892c8ce
---

 libavformat/mxfdec.c |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/libavformat/mxfdec.c b/libavformat/mxfdec.c
index eaba084..0037965 100644
--- a/libavformat/mxfdec.c
+++ b/libavformat/mxfdec.c
@@ -78,6 +78,7 @@ typedef struct {
     uint64_t previous_partition;
     int index_sid;
     int body_sid;
+    int64_t this_partition;
 } MXFPartition;
 
 typedef struct {
@@ -465,7 +466,8 @@ static int mxf_read_partition_pack(void *arg, AVIOContext *pb, int tag, int size
     /* consider both footers to be closed (there is only Footer and CompleteFooter) */
     partition->closed = partition->type == Footer || !(uid[14] & 1);
     partition->complete = uid[14] > 2;
-    avio_skip(pb, 16);
+    avio_skip(pb, 8);
+    partition->this_partition = avio_rb64(pb);
     partition->previous_partition = avio_rb64(pb);
     footer_partition = avio_rb64(pb);
     avio_skip(pb, 16);
@@ -484,8 +486,9 @@ static int mxf_read_partition_pack(void *arg, AVIOContext *pb, int tag, int size
         }
     }
 
-    av_dlog(mxf->fc, "PartitionPack: PreviousPartition = 0x%lx, "
+    av_dlog(mxf->fc, "PartitionPack: ThisPartition = 0x%lx, PreviousPartition = 0x%lx, "
             "FooterPartition = 0x%lx, IndexSID = %i, BodySID = %i\n",
+            partition->this_partition,
             partition->previous_partition, footer_partition,
             partition->index_sid, partition->body_sid);
 



More information about the ffmpeg-cvslog mailing list