[FFmpeg-devel,3/3] lavf/matroskadec: log when falling back to generic seeking

Submitted by Rodger Combs on Dec. 9, 2017, 2:24 a.m.

Details

Message ID 20171209022430.85954-3-rodger.combs@gmail.com
State New
Headers show

Commit Message

Rodger Combs Dec. 9, 2017, 2:24 a.m.
---
 libavformat/matroskadec.c | 1 +
 1 file changed, 1 insertion(+)

Patch hide | download patch | download mbox

diff --git a/libavformat/matroskadec.c b/libavformat/matroskadec.c
index 944ed795d5..fb1a27f4a8 100644
--- a/libavformat/matroskadec.c
+++ b/libavformat/matroskadec.c
@@ -3570,6 +3570,7 @@  static int matroska_read_seek(AVFormatContext *s, int stream_index,
     ff_update_cur_dts(s, st, st->index_entries[index].timestamp);
     return 0;
 err:
+    av_log(s, AV_LOG_VERBOSE, "Failed to seek using index; falling back to generic seek");
     // slightly hackish but allows proper fallback to
     // the generic seeking code.
     matroska_clear_queue(matroska);