[FFmpeg-devel] [PATCH 1/2] avcodec: add mvdv video decoder

Paul B Mahol onemda at gmail.com
Tue Nov 26 20:52:26 EET 2019


On 11/26/19, Nicolas George <george at nsup.org> wrote:
> Paul B Mahol (12019-11-26):
>> >> Nothing of this can actually happen.
>> > Then you could add asserts (and cut your quotes).
>> Asserts for checking UBs? Non sense.
>
> Assert to have debug builds check that the things you say cannot happen
> do not actually happen. That is what asserts are for: check a code
> invariant that is useful but not obvious.
>

Thank you for reminding me what are asserts for.

I will not bloat code with pointless asserts or other kind of lines.


More information about the ffmpeg-devel mailing list