diff options
author | Alicia Boya García <aboya@igalia.com> | 2018-01-25 20:48:42 +0100 |
---|---|---|
committer | Tim-Philipp Müller <tim@centricular.com> | 2018-01-25 20:40:46 +0000 |
commit | ac46d5c2a33ff370b73acb87961e030a43b6239a (patch) | |
tree | 0d6dc846c458ec5d403326a6002015faa822e62c | |
parent | 1bb4b83e9a5d9b9d5f443abb7bf79a19db47e244 (diff) |
qtdemux: Add more prose to the comment of gst_qtdemux_find_sample()
https://bugzilla.gnome.org/show_bug.cgi?id=792910
-rw-r--r-- | gst/isomp4/qtdemux.c | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/gst/isomp4/qtdemux.c b/gst/isomp4/qtdemux.c index 5ae220256..606475059 100644 --- a/gst/isomp4/qtdemux.c +++ b/gst/isomp4/qtdemux.c @@ -1823,9 +1823,19 @@ index_failed: } } -/* stream/index return sample that is min/max w.r.t. byte position, - * time is min/max w.r.t. time of samples, - * the latter need not be time of the former sample */ +/* Find, for each track, the first sample in coding order that has a file offset >= @byte_pos. + * + * If @fw is false, the coding order is explored backwards. + * + * If @set is true, each stream will be moved to its matched sample, or EOS if no matching + * sample is found for that track. + * + * The stream and sample index of the sample with the minimum offset in the direction explored + * (see @fw) is returned in the output parameters @_stream and @_index respectively. + * + * @_time is set to the QTSAMPLE_PTS of the matched sample with the minimum QTSAMPLE_PTS in the + * direction explored, which may not always match the QTSAMPLE_PTS of the sample returned in + * @_stream and @_index. */ static void gst_qtdemux_find_sample (GstQTDemux * qtdemux, gint64 byte_pos, gboolean fw, gboolean set, QtDemuxStream ** _stream, gint * _index, gint64 * _time) |