[FFmpeg-devel] [PATCH 1/2] doc/examples/transcode_aac: Don't ignore last encoded frame
Andreas Unterweger
dustsigns at gmail.com
Wed Mar 2 14:18:05 EET 2022
> On 02.03.2022 12:55 Paul B Mahol <onemda at gmail.com> wrote:
> > > do {
> > > - data_written = 0;
> >
>
> why this is removed ?
>
>
> > > if (encode_audio_frame(NULL, output_format_context,
> > > output_codec_context,
> > &data_written))
> > > goto cleanup;
It is removed because the function encode_audio_frame (next line)
already sets data_written as an output value (this is also in the
documentation of this function). It is thus not needed to initialize
data_written a second time outside of the function.
More information about the ffmpeg-devel
mailing list