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