mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-06-04 05:57:49 +02:00
avformat/crcenc: Make init function out of write_header
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
parent
631e31773b
commit
ba27e248cf
@ -28,7 +28,7 @@ typedef struct CRCState {
|
|||||||
uint32_t crcval;
|
uint32_t crcval;
|
||||||
} CRCState;
|
} CRCState;
|
||||||
|
|
||||||
static int crc_write_header(struct AVFormatContext *s)
|
static int crc_init(struct AVFormatContext *s)
|
||||||
{
|
{
|
||||||
CRCState *crc = s->priv_data;
|
CRCState *crc = s->priv_data;
|
||||||
|
|
||||||
@ -60,7 +60,7 @@ const AVOutputFormat ff_crc_muxer = {
|
|||||||
.priv_data_size = sizeof(CRCState),
|
.priv_data_size = sizeof(CRCState),
|
||||||
.audio_codec = AV_CODEC_ID_PCM_S16LE,
|
.audio_codec = AV_CODEC_ID_PCM_S16LE,
|
||||||
.video_codec = AV_CODEC_ID_RAWVIDEO,
|
.video_codec = AV_CODEC_ID_RAWVIDEO,
|
||||||
.write_header = crc_write_header,
|
.init = crc_init,
|
||||||
.write_packet = crc_write_packet,
|
.write_packet = crc_write_packet,
|
||||||
.write_trailer = crc_write_trailer,
|
.write_trailer = crc_write_trailer,
|
||||||
.flags = AVFMT_NOTIMESTAMPS,
|
.flags = AVFMT_NOTIMESTAMPS,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user