From: Paul B Mahol <onemda@gmail.com> To: FFmpeg development discussions and patches <ffmpeg-devel@ffmpeg.org> Subject: Re: [FFmpeg-devel] [PATCH 1/2] doc/examples/transcode_aac: Don't ignore last encoded frame Date: Wed, 2 Mar 2022 13:27:23 +0100 Message-ID: <CAPYw7P6KicUo-3uBB_6Y4nAx1hXC-NVnOPiXd5Zawpo+Hfhs2g@mail.gmail.com> (raw) In-Reply-To: <CAKp+PPoTxL=SmWHtvWe_nDrpGpQzjKUw0GPczqx5u-1Ni-bc+w@mail.gmail.com> On Wed, Mar 2, 2022 at 1:18 PM Andreas Unterweger <dustsigns@gmail.com> wrote: > > On 02.03.2022 12:55 Paul B Mahol <onemda@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. > Note that it does not set it immediately at start, but later, and upon error it is left untouched/uninitialized. > _______________________________________________ > 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". > _______________________________________________ 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".
next prev parent reply other threads:[~2022-03-02 12:25 UTC|newest] Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top 2022-03-02 12:18 Andreas Unterweger 2022-03-02 12:27 ` Paul B Mahol [this message] -- strict thread matches above, loose matches on Subject: below -- 2022-03-02 12:53 Andreas Unterweger 2022-03-02 14:07 ` Paul B Mahol 2022-03-14 6:41 ` Andreas Unterweger 2022-03-22 17:47 ` Andreas Unterweger 2022-03-02 7:21 Andreas Unterweger 2022-03-02 11:55 ` Paul B Mahol 2022-02-23 14:58 Andreas Unterweger
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=CAPYw7P6KicUo-3uBB_6Y4nAx1hXC-NVnOPiXd5Zawpo+Hfhs2g@mail.gmail.com \ --to=onemda@gmail.com \ --cc=ffmpeg-devel@ffmpeg.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel This inbox may be cloned and mirrored by anyone: git clone --mirror https://master.gitmailbox.com/ffmpegdev/0 ffmpegdev/git/0.git # If you have public-inbox 1.1+ installed, you may # initialize and index your mirror using the following commands: public-inbox-init -V2 ffmpegdev ffmpegdev/ https://master.gitmailbox.com/ffmpegdev \ ffmpegdev@gitmailbox.com public-inbox-index ffmpegdev Example config snippet for mirrors. AGPL code for this site: git clone https://public-inbox.org/public-inbox.git