isomp4: fix wrong atom flags set when adding samples
authorVincent Penquerc'h <vincent.penquerch@collabora.co.uk>
Wed, 16 Apr 2014 15:45:08 +0000 (16:45 +0100)
committerVincent Penquerc'h <vincent.penquerch@collabora.co.uk>
Wed, 16 Apr 2014 16:44:50 +0000 (17:44 +0100)
Coverity 206057

gst/isomp4/atoms.c

index 6f99a6d49c860219025cd14bcbf75aa472dfe282..3f1051c1f812ca806971f632a8f4750391e943da 100644 (file)
@@ -3899,7 +3899,7 @@ atom_trun_add_samples (AtomTRUN * trun, guint32 delta, guint32 size,
   TRUNSampleEntry nentry;
 
   if (pts_offset != 0)
-    trun->header.flags[1] |= TR_COMPOSITION_TIME_OFFSETS;
+    trun->header.flags[1] |= (TR_COMPOSITION_TIME_OFFSETS >> 8);
 
   nentry.sample_duration = delta;
   nentry.sample_size = size;