diff mbox series

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

Message ID 20210528133642.73467-1-liuqi05@kuaishou.com
State New
Headers show
Series [FFmpeg-devel] doc/examples/muxing: remove unused arguments of open_video and open_audio | expand

Checks

Context Check Description
andriy/x86_make success Make finished
andriy/x86_make_fate success Make fate finished
andriy/PPC64_make success Make finished
andriy/PPC64_make_fate success Make fate finished

Commit Message

Steven Liu May 28, 2021, 1:36 p.m. UTC
Signed-off-by: Steven Liu <liuqi05@kuaishou.com>
---
 doc/examples/muxing.c | 10 ++++------
 1 file changed, 4 insertions(+), 6 deletions(-)

Comments

Liu Steven June 7, 2021, 7:59 a.m. UTC | #1
> 2021年5月28日 下午9:36,Steven Liu <liuqi05@kuaishou.com> 写道:
> 
> Signed-off-by: Steven Liu <liuqi05@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
> 
> 
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel@ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
> 
> To unsubscribe, visit link above, or email
> ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe”.ing
> 
Ping

Thanks

Steven Liu
diff mbox series

Patch

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);