[FFmpeg-devel] [PATCH] avformat/seek: Remove dead code

Zhao Zhili quinkblack at foxmail.com
Fri Jan 24 09:24:23 EET 2025


From: Zhao Zhili <zhilizhao at tencent.com>

---
 libavformat/seek.c | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/libavformat/seek.c b/libavformat/seek.c
index 9822f9d83d..a7e5ac9a63 100644
--- a/libavformat/seek.c
+++ b/libavformat/seek.c
@@ -697,10 +697,6 @@ int avformat_seek_file(AVFormatContext *s, int stream_index, int64_t min_ts,
         return ret;
     }
 
-    if (ffifmt(s->iformat)->read_timestamp) {
-        // try to seek via read_timestamp()
-    }
-
     // Fall back on old API if new is not implemented but old is.
     // Note the old API has somewhat different semantics.
     if (ffifmt(s->iformat)->read_seek || 1) {
-- 
2.46.0



More information about the ffmpeg-devel mailing list