Advertisement
Guest User

Untitled

a guest
Aug 28th, 2015
169
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 0.88 KB | None | 0 0
  1. diff --git a/gst/isomp4/qtdemux.c b/gst/isomp4/qtdemux.c
  2. index 6a52021..f5554b1 100644
  3. --- a/gst/isomp4/qtdemux.c
  4. +++ b/gst/isomp4/qtdemux.c
  5. @@ -2725,6 +2728,18 @@ qtdemux_parse_trun (GstQTDemux * qtdemux, GstByteReader * trun,
  6.            stream->samples[stream->n_samples - 1].timestamp +
  7.            stream->samples[stream->n_samples - 1].duration;
  8.  
  9. +      /* If there's a significative difference between the decode_ts and the */
  10. +      /* timestamp, prefer decode_ts */
  11. +      if ((decode_ts - timestamp) > stream->samples[stream->n_samples - 1].duration) {
  12. +          GST_INFO_OBJECT (qtdemux, "decode_ts > timestamp, using decode_ts");
  13. +          timestamp = decode_ts;
  14. +      }
  15. +
  16.        gst_ts = QTSTREAMTIME_TO_GSTTIME (stream, timestamp);
  17.        GST_INFO_OBJECT (qtdemux, "first sample ts %" GST_TIME_FORMAT
  18.            " (extends previous samples)", GST_TIME_ARGS (gst_ts));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement