mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-27 18:02:11 +00:00
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>
This commit is contained in:
parent
f38d01714a
commit
3ba72593b3
@ -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,
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user