mirror of
https://mirror.skon.top/https://github.com/FFmpeg/FFmpeg
synced 2026-04-20 21:00:41 +08:00
avformat/avformat: Move AVOutputFormat internals out of public header
This commit does for AVOutputFormat what commit
20f9727018 did for AVCodec:
It adds a new type FFOutputFormat, moves all the internals
of AVOutputFormat to it and adds a now reduced AVOutputFormat
as first member.
This does not affect/improve extensibility of both public
or private fields for muxers (it is still a mess due to lavd).
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Signed-off-by: Anton Khirnov <anton@khirnov.net>
This commit is contained in:
committed by
Anton Khirnov
parent
f23ae839fc
commit
59c9dc82f4
@@ -27,12 +27,12 @@ static int null_write_packet(struct AVFormatContext *s, AVPacket *pkt)
|
||||
return 0;
|
||||
}
|
||||
|
||||
const AVOutputFormat ff_null_muxer = {
|
||||
.name = "null",
|
||||
.long_name = NULL_IF_CONFIG_SMALL("raw null video"),
|
||||
.audio_codec = AV_NE(AV_CODEC_ID_PCM_S16BE, AV_CODEC_ID_PCM_S16LE),
|
||||
.video_codec = AV_CODEC_ID_WRAPPED_AVFRAME,
|
||||
const FFOutputFormat ff_null_muxer = {
|
||||
.p.name = "null",
|
||||
.p.long_name = NULL_IF_CONFIG_SMALL("raw null video"),
|
||||
.p.audio_codec = AV_NE(AV_CODEC_ID_PCM_S16BE, AV_CODEC_ID_PCM_S16LE),
|
||||
.p.video_codec = AV_CODEC_ID_WRAPPED_AVFRAME,
|
||||
.write_packet = null_write_packet,
|
||||
.flags = AVFMT_VARIABLE_FPS | AVFMT_NOFILE | AVFMT_NOTIMESTAMPS,
|
||||
.p.flags = AVFMT_VARIABLE_FPS | AVFMT_NOFILE | AVFMT_NOTIMESTAMPS,
|
||||
.interleave_packet = ff_interleave_packet_passthrough,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user