Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2021-10-09swscale/alphablend: Fix slice handlingMichael Niedermayer
Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> (cherry picked from commit 06d67265881249566f385309e2fb5a9449720b6e) Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2021-09-12swscale/slice: Fix wrong return on errorMichael Niedermayer
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> (cherry picked from commit 7874d40f10cca922797a8da14189a53ee52f0156) Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2021-09-12swscale/slice: Check slice for allocation failureMichael Niedermayer
Fixes: null pointer dereference Fixes: alloc_slice.mp4 Found-by: Rafael Dutra <rafael.dutra@cispa.de> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> (cherry picked from commit 997f9cfc1295769be8d3180860ceebbc16f59069) Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2020-07-03swscale/utils: Fix invalid left shifts of negative numbersAndreas Rheinhardt
Affected the FATE-tests vsynth_lena-dv-411, vsynth1-dv-411, vsynth2-dv-411 and hevc-paramchange-yuv420p.yuv420p10. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> (cherry picked from commit e2646e23be69bdef1e41d4decee1a4298701b8d1) Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
2020-07-03swscale/x86/swscale: Fix undefined left shifts of negative numbersAndreas Rheinhardt
This affected many FATE-tests: The number of failing tests went down from 663 to 344. (Both numbers exclude tests that failed because of unaligned accesses in code that is inside #if HAVE_FAST_UNALIGNED.) Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> (cherry picked from commit 736c7c20e7819811dc59f43490563789b192eb6e) Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
2020-07-02swscale/yuv2rgb: Fix vertical dither offset with slicesMichael Niedermayer
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> (cherry picked from commit be3c29e3795cb2499e3b96335286d6a8423c0bcf) Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2020-07-02swscale/output: Fix integer overflow in yuv2rgb_write_full() with out of ↵Michael Niedermayer
range input Fixes: signed integer overflow: 1169365504 + 981452800 cannot be represented in type 'int' Fixes: ticket8293 Found-by: Suhwan Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> (cherry picked from commit e057e83a4ff4c0eeeb78dffe58e21af951c056b6) Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2020-07-02swscale/output: Fix integer overflow in alpha computation in ↵Michael Niedermayer
yuv2gbrp16_full_X_c() Fixes: signed integer overflow: 524280 * 4432 cannot be represented in type 'int' Fixes: ticket8322 Found-by: Suhwan Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> (cherry picked from commit 49ba1879add99d3f64d70d34fb0255c8a49d4b28) Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2020-07-02swscale/input: Fix several invalid shifts related to rgb2yuv constantsMichael Niedermayer
Fixes: Invalid shifts Fixes: #8140 Fixes: #8146 Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> (cherry picked from commit d48e510124d0fea24e2ec27271687c92e4428a18) Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2020-07-02swscale/output: Fix several invalid shifts in yuv2rgb_full_1_c_template()Michael Niedermayer
Fixes: Invalid shifts Fixes: #8320 Reviewed-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> (cherry picked from commit 7b7f97532b2ac8836d8d8e3c71dd026e35ae1ca7) Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2020-07-02swscale/swscale: Fix several invalid shifts related to vChrDropMichael Niedermayer
Fixes: Invalid shifts Fixes: #8166 Fixes: filter-crop_scale_vflip FATE-test Reviewed-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> (cherry picked from commit a6ca22c11834c0ff075592e3f051d41068c407db) Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2019-11-15swscale/tests/swscale: Lengthen pixfmt name buffer to 21 bytesMichael Niedermayer
Some formats use longer names than 12. Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> (cherry picked from commit 9d269301f017657c3ae2e95a411317640acd39a8) Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2019-11-15libswcale: Fix possible string overflow in test.Adam Richter
In libswcale/tests/swcale.c, the function fileTest() calls sscanf in an argument of "%12s" on character srcStr[] and dstStr[], which are only 12 bytes. So, if the input string is 12 characters, a terminating null byte can be written past the end of these arrays. This bug was found by cppcheck. Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> (cherry picked from commit b8ed4930618b170de57a9086e1e9892216454684) Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2017-10-11Bump minor versions for branching 3.4Michael Niedermayer
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2017-09-22Fix several typosLou Logan
"apix_fmts" found by Marc Péchaud. "speedloss" found by Mikhail V. Signed-off-by: Lou Logan <lou@lrcd.com>
2017-08-25utils: Do not expand a macro with 'defined' in itDerek Buitenhuis
Fixes: libswscale/utils.c:1632:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined] #if USE_MMAP ^ libswscale/utils.c:1577:49: note: expanded from macro 'USE_MMAP' #define USE_MMAP (HAVE_MMAP && HAVE_MPROTECT && defined MAP_ANONYMOUS) ^ Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
2017-08-24lsws/rgb2rgb: Add unscaled 48bit to 64bit rgb conversion.Carl Eugen Hoyos
Based on b4befca2 and 6b7849e6 by Paul B Mahol. Fixes ticket #6608.
2017-08-07libswscale: add gray9 supportPaul B Mahol
2017-08-06swscale: fix gbrap16 alpha channel issuesJames Cowgill
Fixes filter-pixfmts-scale test failing on big-endian systems due to alpSrc not being cast to (const int32_t**). Also fixes distortions in the output alpha channel values by copying the alpha channel code from the rgba64 case found elsewhere in output.c. Fixes ticket 6555. Signed-off-by: James Cowgill <James.Cowgill@imgtec.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2017-07-30sws/tests/pixdesc_query: fix use of free() instead of av_free()Clément Bœsch
Fix CID 1415949
2017-07-30sws/tests/pixdesc_query: replace rgb based pix fmts with endianess agnostic ↵Clément Bœsch
names Fixes ticket #6554
2017-07-30sws/tests/pixdesc_query: sort pixel formatsClément Bœsch
2017-07-30sws/tests/pixdesc_query: save every pix fmts in a listClément Bœsch
This will be required for the next commit.
2017-06-21build: Generalize yasm/nasm-related variable namesDiego Biurrun
None of them are specific to the YASM assembler. (Cherry-picked from libav commit 39e208f4d4756367c7cd2d581847e0c1b8a429c1) Signed-off-by: James Almer <jamrial@gmail.com>
2017-05-05Merge commit '92db5083077a8b0f8e1050507671b456fd155125'James Almer
* commit '92db5083077a8b0f8e1050507671b456fd155125': build: Generate pkg-config files from Make and not from configure build: Store library version numbers in .version files Includes cherry-picked commits 8a34f3659371680ca523aecfd9098c28f0f809eb and ee164727dd64c199b87118917e674b17c25e0da3 to fix issues. Changes were also made to retain support for raise_major and build_suffix. Reviewed-by: ubitux Merged-by: James Almer <jamrial@gmail.com>
2017-05-03Merge commit '11a9320de54759340531177c9f2b1e31e6112cc2'Clément Bœsch
* commit '11a9320de54759340531177c9f2b1e31e6112cc2': build: Move build-system-related helper files to a separate subdirectory "ffbuild" directory name is used instead of "avbuild". Merged-by: Clément Bœsch <u@pkh.me>
2017-04-30libswscale/tests/swscale: Fix uninitialized variablesMichael Niedermayer
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2017-04-26Merge commit 'ea7ee4b4e381e0fa731458de0cbf740430eeb013'Clément Bœsch
* commit 'ea7ee4b4e381e0fa731458de0cbf740430eeb013': ppc: Centralize compiler-specific altivec.h #include handling in one place Merged-by: Clément Bœsch <u@pkh.me>
2017-04-13lsws/utils: Make gray10 and gray12 full-scale like gray8 and gray16.Carl Eugen Hoyos
2017-04-02Bump versions for master after 3.3n3.4-devMichael Niedermayer
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2017-04-02Bump minor for 3.3Michael Niedermayer
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2017-03-31Bump minor versions for master after release/3.3 branchpointMichael Niedermayer
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2017-03-31Bump minor versions for staring release/3.3 branchMichael Niedermayer
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2017-03-24Merge commit '1263b2039eb5aaf1522e9de9f07c787ab30a5f50'Clément Bœsch
* commit '1263b2039eb5aaf1522e9de9f07c787ab30a5f50': Adjust printf conversion specifiers to match variable signedness Merged-by: Clément Bœsch <u@pkh.me>
2017-03-24sws/tests/pixdesc_query: remove func wrappersClément Bœsch
2017-03-24sws: make is{RGB,BGR}inInt functionsClément Bœsch
2017-03-21Merge commit 'de8e096c7eda2bce76efd0a1c1c89d37348c2414'Clément Bœsch
* commit 'de8e096c7eda2bce76efd0a1c1c89d37348c2414': swscale: Consistently order input YUV pixel formats Merged-by: Clément Bœsch <u@pkh.me>
2017-03-20swscale: cosmetics in is{RGB,BGR}inIntClément Bœsch
Reduce diff with Libav.
2017-03-20swscale: remove unused is{RGB,BGR}inBytesClément Bœsch
2017-03-20swscale: use a (more correct) function for isPackedClément Bœsch
2017-03-20swscale: use a function for isAnyRGBClément Bœsch
2017-03-20swscale: use a function for isBayerClément Bœsch
2017-03-20swscale: use a function for isGrayClément Bœsch
2017-03-20fate: add fate-sws-pixdesc-queryClément Bœsch
Test the pixel format querying within libswscale.
2017-03-19Merge commit 'aa37d2bf4505afc106e2a23c44afc722bb204a8e'Clément Bœsch
* commit 'aa37d2bf4505afc106e2a23c44afc722bb204a8e': swscale: Kill non-compiling disabled cruft The isGray() chunk is not merged as an alternative patch actually fixing the dead code is currently under review on the mailing-list. The SWS_X chunk is merged, with an additional cosmetic. Merged-by: Clément Bœsch <u@pkh.me>
2017-03-08lsws/slice: Move a misplaced const.Carl Eugen Hoyos
Fixes a gcc warning: libswscale/slice.c:178:56: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
2017-03-08lsws/input: Do not define unused functions.Carl Eugen Hoyos
Fixes warnings like the following: libswscale/input.c:951:13: warning: ‘planar_rgb14be_to_a’ defined but not used
2017-02-02swscale: add P016 input supportPhilip Langdale
2016-12-23swscale/swscale: Fix dereference of stride array before null checkMichael Niedermayer
Fixes: CID1396263 Fixes: CID1396271 Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2016-12-22build: Generate pkg-config files from Make and not from configureDiego Biurrun
This moves work from the configure to the Make stage where it can be parallelized and ensures that pkgconfig files are updated when library versions change. Bug-Id: 449