--- a/libavformat/avidec.c
+++ b/libavformat/avidec.c
@@ -2031,6 +2031,7 @@
     .p.name         = "avi",
     .p.long_name    = NULL_IF_CONFIG_SMALL("AVI (Audio Video Interleaved)"),
     .p.extensions   = "avi",
+    .p.flags        = AVFMT_SEEK_NOSTREAMS,
     .p.priv_class   = &demuxer_class,
     .priv_data_size = sizeof(AVIContext),
     .flags_internal = FF_INFMT_FLAG_INIT_CLEANUP,
