---
libavformat/mov.c | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/libavformat/mov.c b/libavformat/mov.c
index 573ee8bda3..86b0651697 100644
--- a/libavformat/mov.c
+++ b/libavformat/mov.c
@@ -8573,12 +8573,12 @@ static int mov_seek_stream(AVFormatContext *s, AVStream
*st, int64_t timestamp,
return ret;
for (;;) {
- sample = av_index_search_timestamp(st, timestamp, flags);
- av_log(s, AV_LOG_TRACE, "stream %d, timestamp %"PRId64", sample %d\n",
st->index, timestamp, sample);
- if (sample < 0 && sti->nb_index_entries && timestamp <
sti->index_entries[0].timestamp)
- sample = 0;
- if (sample < 0) /* not sure what to do */
- return AVERROR_INVALIDDATA;
+ sample = av_index_search_timestamp(st, timestamp, flags);
+ av_log(s, AV_LOG_TRACE, "stream %d, timestamp %"PRId64", sample %d\n",
st->index, timestamp, sample);
+ if (sample < 0 && sti->nb_index_entries && timestamp <
sti->index_entries[0].timestamp)
+ sample = 0;
+ if (sample < 0) /* not sure what to do */
+ return AVERROR_INVALIDDATA;
if (!sample || can_seek_to_key_sample(st, sample, timestamp))
break;
--
2.35.1
_______________________________________________
ffmpeg-devel mailing list
[email protected]
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email
[email protected] with subject "unsubscribe".