diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2023-06-05 15:56:58 +0200 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2023-07-22 16:18:39 +0200 |
commit | 94d44dbe212b3ecb67256c4edfc3d7c3c3ac4472 (patch) | |
tree | d6c9474cbcd5eb4168d037a83779590b8af89c10 | |
parent | 8f48a62151f4a299574959df9a48813303ef4edb (diff) |
avcodec/pcm: allow Changing parameters
SDR needs this for switching between mono and stereo stations
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
-rw-r--r-- | libavcodec/pcm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/pcm.c b/libavcodec/pcm.c index 23955ba2dd..467ecb4fe0 100644 --- a/libavcodec/pcm.c +++ b/libavcodec/pcm.c @@ -578,7 +578,7 @@ const FFCodec ff_ ## name_ ## _decoder = { \ .priv_data_size = sizeof(PCMDecode), \ .init = pcm_decode_init, \ FF_CODEC_DECODE_CB(pcm_decode_frame), \ - .p.capabilities = AV_CODEC_CAP_DR1, \ + .p.capabilities = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_PARAM_CHANGE, \ .p.sample_fmts = (const enum AVSampleFormat[]){ sample_fmt_, \ AV_SAMPLE_FMT_NONE }, \ } |