[FFmpeg-devel] [PATCH 2/2] avformat/nullenc: use null encoders instead

Paul B Mahol onemda at gmail.com
Mon Mar 14 13:56:02 EET 2022


Signed-off-by: Paul B Mahol <onemda at gmail.com>
---
 libavformat/nullenc.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/libavformat/nullenc.c b/libavformat/nullenc.c
index d4769d5920..a83ed72039 100644
--- a/libavformat/nullenc.c
+++ b/libavformat/nullenc.c
@@ -30,8 +30,8 @@ static int null_write_packet(struct AVFormatContext *s, AVPacket *pkt)
 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,
+    .audio_codec       = AV_CODEC_ID_AUDIO_NULL,
+    .video_codec       = AV_CODEC_ID_VIDEO_NULL,
     .write_packet      = null_write_packet,
     .flags             = AVFMT_VARIABLE_FPS | AVFMT_NOFILE | AVFMT_NOTIMESTAMPS,
     .interleave_packet = ff_interleave_packet_passthrough,
-- 
2.33.0



More information about the ffmpeg-devel mailing list