[FFmpeg-devel] [PATCH]lavf, lavfi: Remove uses of sizeof(char)

Carl Eugen Hoyos ceffmpeg at gmail.com
Sun Apr 5 00:22:19 EEST 2020


Am Sa., 4. Apr. 2020 um 06:40 Uhr schrieb Andreas Rheinhardt
<andreas.rheinhardt at gmail.com>:
>
> Carl Eugen Hoyos:
> > Hi!
> >
> > Attached patch removes uses of sizeof(char) from libavfilter and libavformat.
> >
> > Please comment, Carl Eugen
> >
> The commit message is misleading: Actually C is based around
> sizeof(char) = 1. From the semantics of the sizeof operator: "When
> applied to an operand that has type char, unsigned char, or signed char,
> (or a qualified version thereof) the result is 1." (C90, 6.3.3.4; C99,
> 6.5.3.4).

Pushed with an improved commit message.

Carl Eugen


More information about the ffmpeg-devel mailing list