Permalink
Browse files

Fixed issue with timings when the time field is empty

  • Loading branch information...
1 parent e3d3eec commit 35bf94085664ed3bc273eb47fea1481efc1bc3ef @tsipanov committed May 18, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/smth-manifest-parser.c
@@ -796,7 +796,7 @@ static error_t parsechunk(ManifestBox *mb, const char **attr)
if (!tmp->duration)
tmp->duration = mb->previoustime? tmp->time - mb->previoustime: 0;
if (!tmp->time)
- tmp->time = mb->previousduration? tmp->duration + mb->previousduration: 0;
+ tmp->time = mb->previousduration? mb->previoustime + mb->previousduration: 0;
mb->previousduration = tmp->duration;
mb->previoustime = tmp->time;

0 comments on commit 35bf940

Please sign in to comment.