git.videolan.org Git - ffmpeg.git/rss log
FFmpeg git repo
Les articles publiés sur le site
-
swscale/tests/swscale : Fix potential buffer overflow
18 mars, par Andreas Rheinhardtswscale/tests/swscale: Fix potential buffer overflow The field width in a %s directive gives the amount of characters to read from the input and not the size of the receiving buffer; the latter must be of course also have space for the trailing \0 which has been forgotten here. The commit adds it (and fixes a -Wfortify-source warning from Clang). Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
-
avcodec/webvttdec : update documentation
18 mars, par Leon Grutters -
avutil/csp : Improve enum range comparisons
18 mars, par Andreas Rheinhardtavutil/csp: Improve enum range comparisons The underlying integer type of an enumeration is implementation-defined (see C11, 6.7.2.2 (4)); GCC defaults to unsigned if there are no negative values like for all enums from pixfmt.h except enum AVPixelFormat. This means that tests like "if (csp >= AVCOL_SPC_NB)" for invalid colorspaces need not work as expected (namely if enum AVColorSpace is signed). It also means that testing for such an enum variable to be >= 0 may be tautologically true. Clang emits a -Wtautological-unsigned-enum-zero-compare warning for this. Fix both of these issues by casting to unsigned. Also do the same in libswscale/format.c. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
-
configure : improve ar test for response files
18 mars, par Gyan Doshi -
avformat/mov : generalize sgpd_sync index lookup
18 mars, par Zhao Zhili