amr: Set the AVFMT_GENERIC_INDEX flag
authorMartin Storsjö <martin@martin.st>
Wed, 9 Feb 2011 10:19:39 +0000 (12:19 +0200)
committerLuca Barbato <lu_zero@gentoo.org>
Mon, 21 Mar 2011 20:31:34 +0000 (21:31 +0100)
This makes the amr demuxer support seeking, closing roundup
issue 2593.

libavformat/amr.c

index 76136e626b4d56def3560e37d488cbd78413a679..260bd6ada629198b6d6763c854a7927b61932c03 100644 (file)
@@ -181,6 +181,7 @@ AVInputFormat ff_amr_demuxer = {
     amr_read_header,
     amr_read_packet,
     NULL,
+    .flags = AVFMT_GENERIC_INDEX,
 };
 #endif