[FFmpeg-cvslog] avcodec/g728dec: Remove AVCodec.sample_fmts

Andreas Rheinhardt git at videolan.org
Mon Jun 23 22:52:29 EEST 2025


ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinhardt at outlook.com> | Mon Jun 23 12:41:36 2025 +0200| [88fee7046a8e479e95b17e0c8bcb2d7015ca0461] | committer: Andreas Rheinhardt

avcodec/g728dec: Remove AVCodec.sample_fmts

It is unnecessary for decoders (they just set
AVCodecContext.sample_fmt). This also fixes a warning
with Clang (because sample_fmts is set directly,
not via CODEC_SAMPLEFMTS).

Reviewed-by: Peter Ross <pross at xvid.org>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>

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

 libavcodec/g728dec.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/libavcodec/g728dec.c b/libavcodec/g728dec.c
index fdaf0a853e..edf45c589b 100644
--- a/libavcodec/g728dec.c
+++ b/libavcodec/g728dec.c
@@ -215,6 +215,4 @@ const FFCodec ff_g728_decoder = {
     FF_CODEC_DECODE_CB(g728_decode_frame),
     .p.capabilities = AV_CODEC_CAP_CHANNEL_CONF |
                       AV_CODEC_CAP_DR1,
-    .p.sample_fmts  = (const enum AVSampleFormat[]) { AV_SAMPLE_FMT_FLT,
-                                                      AV_SAMPLE_FMT_NONE },
 };



More information about the ffmpeg-cvslog mailing list