[8/8] nellymoserdec: Indicate that the decoder can handle changed parameters

Message ID 1324044883-78833-3-git-send-email-martin@martin.st
State Committed
Commit ce94948198f3d22fd1ed53b99ee31e0a3f791f87
Headers show

Commit Message

Martin Storsjö Dec. 16, 2011, 2:14 p.m.
---
 libavcodec/nellymoserdec.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Comments

Justin Ruggles Dec. 19, 2011, 5:50 p.m. | #1
On 12/16/2011 09:14 AM, Martin Storsjö wrote:

> ---
>  libavcodec/nellymoserdec.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/libavcodec/nellymoserdec.c b/libavcodec/nellymoserdec.c
> index 7723c58..af286fb 100644
> --- a/libavcodec/nellymoserdec.c
> +++ b/libavcodec/nellymoserdec.c
> @@ -221,7 +221,7 @@ AVCodec ff_nellymoser_decoder = {
>      .init           = decode_init,
>      .close          = decode_end,
>      .decode         = decode_tag,
> -    .capabilities   = CODEC_CAP_DR1,
> +    .capabilities   = CODEC_CAP_DR1 | CODEC_CAP_PARAM_CHANGE,
>      .long_name = NULL_IF_CONFIG_SMALL("Nellymoser Asao"),
>      .sample_fmts    = (const enum AVSampleFormat[]) { AV_SAMPLE_FMT_FLT,
>                                                        AV_SAMPLE_FMT_S16,


ok.

-Justin

Patch

diff --git a/libavcodec/nellymoserdec.c b/libavcodec/nellymoserdec.c
index 7723c58..af286fb 100644
--- a/libavcodec/nellymoserdec.c
+++ b/libavcodec/nellymoserdec.c
@@ -221,7 +221,7 @@  AVCodec ff_nellymoser_decoder = {
     .init           = decode_init,
     .close          = decode_end,
     .decode         = decode_tag,
-    .capabilities   = CODEC_CAP_DR1,
+    .capabilities   = CODEC_CAP_DR1 | CODEC_CAP_PARAM_CHANGE,
     .long_name = NULL_IF_CONFIG_SMALL("Nellymoser Asao"),
     .sample_fmts    = (const enum AVSampleFormat[]) { AV_SAMPLE_FMT_FLT,
                                                       AV_SAMPLE_FMT_S16,