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).
Unified · Split
| @@ -215,6 +215,4 @@ const FFCodec ff_g728_decoder = { · 214 unmodified lines | ||
| 215 | 215 | FF_CODEC_DECODE_CB(g728_decode_frame), |
| 216 | 216 | .p.capabilities = AV_CODEC_CAP_CHANNEL_CONF | |
| 217 | 217 | AV_CODEC_CAP_DR1, |
| 218 | − .p.sample_fmts = (const enum AVSampleFormat[]) { AV_SAMPLE_FMT_FLT, | |
| 219 | − AV_SAMPLE_FMT_NONE }, | |
| 220 | 218 | }; |