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