[FFmpeg-devel] [PATCH]lavf, lavfi: Remove uses of sizeof(char)
Andreas Rheinhardt
andreas.rheinhardt at gmail.com
Sat Apr 4 07:40:32 EEST 2020
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).
- Andreas
More information about the ffmpeg-devel
mailing list