diff options
author | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2020-07-17 07:36:11 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2020-07-26 16:57:21 +0200 |
commit | 3ba72593b35d0df4213c02412f8ab2bc602de62d (patch) | |
tree | f18b292f682dbb8df820a8eedf36bb06eb8ff360 /libavformat | |
parent | f38d01714a2f835dec1a37347f4f3c182be2eefa (diff) | |
download | ffmpeg-3ba72593b35d0df4213c02412f8ab2bc602de62d.tar.gz |
avformat/daudenc: Turn write_header function into init function
daud_write_header() doesn't write anything.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/daudenc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/daudenc.c b/libavformat/daudenc.c index 15a5afdfc9..0d8d830a67 100644 --- a/libavformat/daudenc.c +++ b/libavformat/daudenc.c @@ -21,7 +21,7 @@ #include "avformat.h" -static int daud_write_header(struct AVFormatContext *s) +static int daud_init(struct AVFormatContext *s) { AVCodecParameters *par = s->streams[0]->codecpar; if (par->channels!=6 || par->sample_rate!=96000) @@ -48,7 +48,7 @@ AVOutputFormat ff_daud_muxer = { .extensions = "302", .audio_codec = AV_CODEC_ID_PCM_S24DAUD, .video_codec = AV_CODEC_ID_NONE, - .write_header = daud_write_header, + .init = daud_init, .write_packet = daud_write_packet, .flags = AVFMT_NOTIMESTAMPS, }; |