diff mbox series

[FFmpeg-devel,04/13] avformat/codec2: Don't allocate Codec2Context for muxer

Message ID AS8P250MB0744084C26A7FB4942D5090F8F332@AS8P250MB0744.EURP250.PROD.OUTLOOK.COM
State Accepted
Commit 0b7d4fccce2b5f3c9e5e2d43c8937e49e73bd99f
Headers show
Series [FFmpeg-devel,01/13] avformat/mp3enc: Improve query_codec | expand

Checks

Context Check Description
andriy/make_x86 success Make finished
andriy/make_fate_x86 success Make fate finished

Commit Message

Andreas Rheinhardt March 20, 2024, 2:12 a.m. UTC
Only the demuxers use it.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
---
 libavformat/codec2.c | 1 -
 1 file changed, 1 deletion(-)

Comments

Tomas Härdin March 20, 2024, 11:23 a.m. UTC | #1
ons 2024-03-20 klockan 03:12 +0100 skrev Andreas Rheinhardt:
> Only the demuxers use it.
> 
> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
> ---
>  libavformat/codec2.c | 1 -
>  1 file changed, 1 deletion(-)
> 
> diff --git a/libavformat/codec2.c b/libavformat/codec2.c
> index 4a3e10c6e3..9ed57af0a8 100644
> --- a/libavformat/codec2.c
> +++ b/libavformat/codec2.c
> @@ -318,7 +318,6 @@ const FFOutputFormat ff_codec2_muxer = {
>      .p.audio_codec  = AV_CODEC_ID_CODEC2,
>      .p.video_codec  = AV_CODEC_ID_NONE,
>      .p.flags        = AVFMT_NOTIMESTAMPS,
> -    .priv_data_size = sizeof(Codec2Context),
>      .write_header   = codec2_write_header,
>      .write_packet   = ff_raw_write_packet,
>  };

Right, mode is carried in extradata. OK.

/Tomas
diff mbox series

Patch

diff --git a/libavformat/codec2.c b/libavformat/codec2.c
index 4a3e10c6e3..9ed57af0a8 100644
--- a/libavformat/codec2.c
+++ b/libavformat/codec2.c
@@ -318,7 +318,6 @@  const FFOutputFormat ff_codec2_muxer = {
     .p.audio_codec  = AV_CODEC_ID_CODEC2,
     .p.video_codec  = AV_CODEC_ID_NONE,
     .p.flags        = AVFMT_NOTIMESTAMPS,
-    .priv_data_size = sizeof(Codec2Context),
     .write_header   = codec2_write_header,
     .write_packet   = ff_raw_write_packet,
 };