ffmpeg | branch: release/5.1 | Michael Niedermayer <[email protected]> | 
Mon Jun  5 15:56:58 2023 +0200| [1759fd0d82c460ba95c694a9c4f5a60997d154c3] | 
committer: Michael Niedermayer

avcodec/pcm: allow Changing parameters

SDR needs this for switching between mono and stereo stations

Signed-off-by: Michael Niedermayer <[email protected]>
(cherry picked from commit 94d44dbe212b3ecb67256c4edfc3d7c3c3ac4472)
Signed-off-by: Michael Niedermayer <[email protected]>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=1759fd0d82c460ba95c694a9c4f5a60997d154c3
---

 libavcodec/pcm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/pcm.c b/libavcodec/pcm.c
index 471075ad71..eb601c4af2 100644
--- a/libavcodec/pcm.c
+++ b/libavcodec/pcm.c
@@ -584,7 +584,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 },  \
     .caps_internal  = FF_CODEC_CAP_INIT_THREADSAFE,                         \

_______________________________________________
ffmpeg-cvslog mailing list
[email protected]
https://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog

To unsubscribe, visit link above, or email
[email protected] with subject "unsubscribe".

Reply via email to