| 208 | } |
| 209 | |
| 210 | static int alp_write_header(AVFormatContext *s) |
| 211 | { |
| 212 | ALPMuxContext *alp = s->priv_data; |
| 213 | AVCodecParameters *par = s->streams[0]->codecpar; |
| 214 | |
| 215 | avio_wl32(s->pb, ALP_TAG); |
| 216 | avio_wl32(s->pb, alp->type == ALP_TYPE_PCM ? 12 : 8); |
| 217 | avio_write(s->pb, "ADPCM", 6); |
| 218 | avio_w8(s->pb, 0); |
| 219 | avio_w8(s->pb, par->ch_layout.nb_channels); |
| 220 | if (alp->type == ALP_TYPE_PCM) |
| 221 | avio_wl32(s->pb, par->sample_rate); |
| 222 | |
| 223 | return 0; |
| 224 | } |
| 225 | |
| 226 | enum { AE = AV_OPT_FLAG_AUDIO_PARAM | AV_OPT_FLAG_ENCODING_PARAM }; |
| 227 |
nothing calls this directly
no test coverage detected