Unified · Split
| @@ -716,6 +716,9 @@ error: · 715 unmodified lines | ||
| 716 | 716 | return AVERROR(ENOMEM); |
| 717 | 717 | } |
| 718 | 718 | |
| 719 | +static const enum AVSampleFormat sample_fmts[] = { | |
| 720 | + AV_SAMPLE_FMT_S16, AV_SAMPLE_FMT_NONE | |
| 721 | +}; | |
| 719 | 722 | |
| 720 | 723 | #define ADPCM_ENCODER(id_, name_, long_name_) \ |
| 721 | 724 | AVCodec ff_ ## name_ ## _encoder = { \ |
| @@ -726,8 +729,7 @@ AVCodec ff_ ## name_ ## _encoder = { \ · 4 unmodified lines | ||
| 726 | 729 | .init = adpcm_encode_init, \ |
| 727 | 730 | .encode2 = adpcm_encode_frame, \ |
| 728 | 731 | .close = adpcm_encode_close, \ |
| 729 | − .sample_fmts = (const enum AVSampleFormat[]) { AV_SAMPLE_FMT_S16, \ | |
| 730 | − AV_SAMPLE_FMT_NONE }, \ | |
| 732 | + .sample_fmts = sample_fmts, \ | |
| 731 | 733 | .long_name = NULL_IF_CONFIG_SMALL(long_name_), \ |
| 732 | 734 | } |
| 733 | 735 | |