git.videolan.org
/
ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
308429e
)
avformat/utils: replace impossible condition by av_assert0() in ff_gen_search()
author
Michael Niedermayer
<michaelni@gmx.at>
Tue, 9 Dec 2014 16:53:30 +0000
(17:53 +0100)
committer
Michael Niedermayer
<michaelni@gmx.at>
Tue, 9 Dec 2014 16:53:30 +0000
(17:53 +0100)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/utils.c
patch
|
blob
|
history
diff --git
a/libavformat/utils.c
b/libavformat/utils.c
index
3447b35
..
1bd21a2
100644
(file)
--- a/
libavformat/utils.c
+++ b/
libavformat/utils.c
@@
-1917,10
+1917,7
@@
int64_t ff_gen_search(AVFormatContext *s, int stream_index, int64_t target_ts,
return pos_max;
}
return pos_max;
}
- if (ts_min > ts_max)
- return -1;
- else if (ts_min == ts_max)
- pos_limit = pos_min;
+ av_assert0(ts_min < ts_max);
no_change = 0;
while (pos_min < pos_limit) {
no_change = 0;
while (pos_min < pos_limit) {