[FFmpeg-devel] [PATCH] doc/examples/muxing: remove unused arguments of open_video and open_audio

Steven Liu liuqi05 at kuaishou.com
Fri May 28 16:36:42 EEST 2021


Signed-off-by: Steven Liu <liuqi05 at kuaishou.com>
---
 doc/examples/muxing.c | 10 ++++------
 1 file changed, 4 insertions(+), 6 deletions(-)

diff --git a/doc/examples/muxing.c b/doc/examples/muxing.c
index fe1b9ded21..3986561b2f 100644
--- a/doc/examples/muxing.c
+++ b/doc/examples/muxing.c
@@ -242,8 +242,7 @@ static AVFrame *alloc_audio_frame(enum AVSampleFormat sample_fmt,
     return frame;
 }
 
-static void open_audio(AVFormatContext *oc, const AVCodec *codec,
-                       OutputStream *ost, AVDictionary *opt_arg)
+static void open_audio(const AVCodec *codec, OutputStream *ost, AVDictionary *opt_arg)
 {
     AVCodecContext *c;
     int nb_samples;
@@ -406,8 +405,7 @@ static AVFrame *alloc_picture(enum AVPixelFormat pix_fmt, int width, int height)
     return picture;
 }
 
-static void open_video(AVFormatContext *oc, const AVCodec *codec,
-                       OutputStream *ost, AVDictionary *opt_arg)
+static void open_video(const AVCodec *codec, OutputStream *ost, AVDictionary *opt_arg)
 {
     int ret;
     AVCodecContext *c = ost->enc;
@@ -592,10 +590,10 @@ int main(int argc, char **argv)
     /* Now that all the parameters are set, we can open the audio and
      * video codecs and allocate the necessary encode buffers. */
     if (have_video)
-        open_video(oc, video_codec, &video_st, opt);
+        open_video(video_codec, &video_st, opt);
 
     if (have_audio)
-        open_audio(oc, audio_codec, &audio_st, opt);
+        open_audio(audio_codec, &audio_st, opt);
 
     av_dump_format(oc, 0, filename, 1);
 
-- 
2.25.0





More information about the ffmpeg-devel mailing list