[FFmpeg-devel] [PATCH 08/11] libavformat/mxfdec.c: Parse track position.

Alexis Ballier aballier at gentoo.org
Wed Oct 21 18:01:02 CEST 2015


---
 libavformat/mxfdec.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/libavformat/mxfdec.c b/libavformat/mxfdec.c
index 2b776f6..5c224ef 100644
--- a/libavformat/mxfdec.c
+++ b/libavformat/mxfdec.c
@@ -161,6 +161,7 @@ typedef struct {
     int intra_only;
     uint64_t sample_count;
     int64_t original_duration; /* st->duration in SampleRate/EditRate units */
+    int64_t position;
 } MXFTrack;
 
 typedef struct MXFDescriptor {
@@ -793,6 +794,9 @@ static int mxf_read_track(void *arg, AVIOContext *pb, int tag, int size, UID uid
         track->edit_rate.num = avio_rb32(pb);
         track->edit_rate.den = avio_rb32(pb);
         break;
+    case 0x4b02:
+        track->position = avio_rb64(pb);
+        break;
     case 0x4803:
         avio_read(pb, track->sequence_ref, 16);
         break;
-- 
2.6.2



More information about the ffmpeg-devel mailing list