@@ -67,7 +67,7 @@ func write_video_frame(ctx *ff.AVFormatContext, stream *Stream) bool {
6767
6868
6969
70-
70+ /*
7171 static int write_audio_frame(AVFormatContext *oc, OutputStream *ost)
7272 {
7373 AVCodecContext *c;
@@ -80,8 +80,8 @@ func write_video_frame(ctx *ff.AVFormatContext, stream *Stream) bool {
8080 frame = get_audio_frame(ost);
8181
8282 if (frame) {
83- /* convert samples from native format to destination codec format, using the resampler */
84- /* compute destination number of samples */
83+ /* convert samples from native format to destination codec format, using the resampler
84+ /* compute destination number of samples
8585 dst_nb_samples = av_rescale_rnd(swr_get_delay(ost->swr_ctx, c->sample_rate) + frame->nb_samples,
8686 c->sample_rate, c->sample_rate, AV_ROUND_UP);
8787 av_assert0(dst_nb_samples == frame->nb_samples);
@@ -94,7 +94,7 @@ func write_video_frame(ctx *ff.AVFormatContext, stream *Stream) bool {
9494 if (ret < 0)
9595 exit(1);
9696
97- /* convert to destination format */
97+ /* convert to destination format
9898 ret = swr_convert(ost->swr_ctx,
9999 ost->frame->data, dst_nb_samples,
100100 (const uint8_t **)frame->data, frame->nb_samples);
@@ -109,4 +109,5 @@ func write_video_frame(ctx *ff.AVFormatContext, stream *Stream) bool {
109109 }
110110
111111 return write_frame(oc, c, ost->st, frame, ost->tmp_pkt);
112- }
112+ }
113+ */
0 commit comments