mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 06:46:38 +00:00
qtdemux: Fix time returned for index at a byte offset
The logic for searching forwards/backwards was swapped
This commit is contained in:
parent
c2eedfcceb
commit
8d4f70c5ce
1 changed files with 2 additions and 2 deletions
|
@ -1423,8 +1423,8 @@ gst_qtdemux_find_sample (GstQTDemux * qtdemux, gint64 byte_pos, gboolean fw,
|
|||
}
|
||||
/* determine min/max time */
|
||||
time = str->samples[i].timestamp + str->samples[i].pts_offset;
|
||||
if (min_time == -1 || (fw && min_time > time) ||
|
||||
(!fw && min_time < time)) {
|
||||
if (min_time == -1 || (!fw && min_time > time) ||
|
||||
(fw && min_time < time)) {
|
||||
min_time = time;
|
||||
ts_timescale = str->timescale;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue