[3/3] amr: Set the AVFMT_GENERIC_INDEX flag

Message ID 1300699787-55604-3-git-send-email-martin@martin.st
State Committed
Commit af79dd36f302d209eff18ee21410d987faad01a4
Headers show

Commit Message

Martin Storsjö March 21, 2011, 9:29 a.m.
This makes the amr demuxer support seeking, closing roundup
issue 2593.
---
 libavformat/amr.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

Comments

Benoit Fouet March 21, 2011, 9:49 a.m. | #1
On Mon, 21 Mar 2011 11:29:47 +0200 Martin Storsjö wrote:
> This makes the amr demuxer support seeking, closing roundup
> issue 2593.
> ---
>  libavformat/amr.c |    1 +
>  1 files changed, 1 insertions(+), 0 deletions(-)
> 
> diff --git a/libavformat/amr.c b/libavformat/amr.c
> index 76136e6..260bd6a 100644
> --- a/libavformat/amr.c
> +++ b/libavformat/amr.c
> @@ -181,6 +181,7 @@ AVInputFormat ff_amr_demuxer = {
>      amr_read_header,
>      amr_read_packet,
>      NULL,
> +    .flags = AVFMT_GENERIC_INDEX,
>  };
>  #endif
>  

Fine as well.

Patch

diff --git a/libavformat/amr.c b/libavformat/amr.c
index 76136e6..260bd6a 100644
--- a/libavformat/amr.c
+++ b/libavformat/amr.c
@@ -181,6 +181,7 @@  AVInputFormat ff_amr_demuxer = {
     amr_read_header,
     amr_read_packet,
     NULL,
+    .flags = AVFMT_GENERIC_INDEX,
 };
 #endif