changeset 4713:9529cf439607 libavformat

do not parse timestamp if bitexact is set, should fix regression tests
author bcoudurier
date Sat, 14 Mar 2009 22:43:28 +0000
parents 2809dfd4c881
children 6e9e1f5426a5
files mxfenc.c
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/mxfenc.c	Sat Mar 14 22:07:15 2009 +0000
+++ b/mxfenc.c	Sat Mar 14 22:43:28 2009 +0000
@@ -1490,8 +1490,10 @@
         mxf->essence_container_count = 1;
     }
 
-    if (!(s->streams[0]->codec->flags & CODEC_FLAG_BITEXACT))
+    if (!(s->streams[0]->codec->flags & CODEC_FLAG_BITEXACT)) {
         mxf_gen_umid(s);
+        mxf->timestamp = mxf_parse_timestamp(s->timestamp);
+    }
 
     for (i = 0; i < s->nb_streams; i++) {
         MXFStreamContext *sc = s->streams[i]->priv_data;
@@ -1500,7 +1502,6 @@
         sc->order = AV_RB32(sc->track_essence_element_key+12);
     }
 
-    mxf->timestamp = mxf_parse_timestamp(s->timestamp);
     mxf->duration = -1;
 
     mxf->timecode_track = av_mallocz(sizeof(*mxf->timecode_track));