mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-10-06 10:42:22 +00:00
avidemux: Don't increment -1 / unset indices
CID 1398545
This commit is contained in:
parent
ce2070c092
commit
8dee6f815f
1 changed files with 1 additions and 1 deletions
|
@ -2646,7 +2646,7 @@ gst_avi_demux_index_for_time (GstAviDemux * avi,
|
|||
index = avi_stream_convert_time_to_frames_unchecked (stream, time);
|
||||
/* this entry typically undershoots the target time,
|
||||
* so check a bit more if next needed */
|
||||
if (next) {
|
||||
if (next && index != -1) {
|
||||
GstClockTime itime =
|
||||
avi_stream_convert_frames_to_time_unchecked (stream, index);
|
||||
if (itime < time && index + 1 < stream->idx_n)
|
||||
|
|
Loading…
Reference in a new issue