projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
38c304a
)
utils: Drop pointless '#if 1' preprocessor directive.
author
Diego Biurrun
<diego@biurrun.de>
Fri, 10 Jun 2011 18:27:50 +0000
(20:27 +0200)
committer
Diego Biurrun
<diego@biurrun.de>
Mon, 13 Jun 2011 21:02:28 +0000
(23:02 +0200)
libavformat/utils.c
patch
|
blob
|
history
diff --git
a/libavformat/utils.c
b/libavformat/utils.c
index
d0fd0d4
..
60f4d03
100644
(file)
--- a/
libavformat/utils.c
+++ b/
libavformat/utils.c
@@
-1577,14
+1577,12
@@
int64_t av_gen_search(AVFormatContext *s, int stream_index, int64_t target_ts, i
pos = (flags & AVSEEK_FLAG_BACKWARD) ? pos_min : pos_max;
ts = (flags & AVSEEK_FLAG_BACKWARD) ? ts_min : ts_max;
-#if 1
pos_min = pos;
ts_min = read_timestamp(s, stream_index, &pos_min, INT64_MAX);
pos_min++;
ts_max = read_timestamp(s, stream_index, &pos_min, INT64_MAX);
av_dlog(s, "pos=0x%"PRIx64" %"PRId64"<=%"PRId64"<=%"PRId64"\n",
pos, ts_min, target_ts, ts_max);
-#endif
*ts_ret= ts;
return pos;
}