MCPcopy Create free account
hub / github.com/FFmpeg/FFmpeg / alp_write_header

Function alp_write_header

libavformat/alp.c:210–224  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

208}
209
210static 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
226enum { AE = AV_OPT_FLAG_AUDIO_PARAM | AV_OPT_FLAG_ENCODING_PARAM };
227

Callers

nothing calls this directly

Calls 3

avio_wl32Function · 0.85
avio_writeFunction · 0.85
avio_w8Function · 0.85

Tested by

no test coverage detected