FFmpeg git repo
Go to file
Ronald S. Bultje be1bafc303 swscale: fix overflows in output of RGB48 pixels.
For certain types of filters where the intermediate sum of coefficients
can go above the fixed-point equivalent of 1.0 in the middle of a filter,
the sum of a 31-bit calculation can overflow in both directions and can
thus not be represented in a 32-bit signed or unsigned integer. To work
around this, we subtract 0x40000000 from a signed integer base, so that
we're halfway signed/unsigned, which makes it fit even if it overflows.
After the filter finishes, we add the scaled bias back after a shift.

We use the same trick for 16-bit bpc YUV output routines.

Signed-off-by: Mans Rullgard <mans@mansr.com>
2011-12-17 18:36:20 +00:00
doc avconv: support stream specifiers in -metadata and -map_metadata 2011-12-16 21:12:53 +01:00
libavcodec get_bits: remove strange/obsolete comments 2011-12-17 18:36:20 +00:00
libavdevice build: move inclusion of subdir.mak to main subdir loop 2011-12-13 14:26:49 +00:00
libavfilter yadif: support 10bit YUV 2011-12-13 17:02:55 +01:00
libavformat mpegts: replace some magic numbers with the existing define 2011-12-16 11:45:36 +02:00
libavutil build: move inclusion of subdir.mak to main subdir loop 2011-12-13 14:26:49 +00:00
libpostproc build: move inclusion of subdir.mak to main subdir loop 2011-12-13 14:26:49 +00:00
libswscale swscale: fix overflows in output of RGB48 pixels. 2011-12-17 18:36:20 +00:00
presets
tests fate: fix eatqi test 2011-12-17 15:49:25 +00:00
tools Replace all uses of av_close_input_file() with avformat_close_input(). 2011-12-12 20:34:38 +01:00
.gitignore
avconv.c avconv: support stream specifiers in -metadata and -map_metadata 2011-12-16 21:12:53 +01:00
avplay.c Replace all uses of av_close_input_file() with avformat_close_input(). 2011-12-12 20:34:38 +01:00
avprobe.c Replace all uses of av_close_input_file() with avformat_close_input(). 2011-12-12 20:34:38 +01:00
avserver.c Replace all uses of av_close_input_file() with avformat_close_input(). 2011-12-12 20:34:38 +01:00
Changelog v410 encoder and decoder 2011-12-13 23:34:24 +01:00
cmdutils_common_opts.h
cmdutils.c Add libavutil/mathematics.h #includes for INFINITY 2011-11-22 16:36:44 +00:00
cmdutils.h Fix a bunch of common typos. 2011-12-11 00:32:25 +01:00
common.mak
configure get_bits: introduce safe bitreading to prevent overreads. 2011-12-17 14:03:41 +00:00
COPYING.GPLv2
COPYING.GPLv3
COPYING.LGPLv2.1
COPYING.LGPLv3
CREDITS
Doxyfile doxy: change hue value to match our green 2011-12-09 04:20:41 +01:00
ffmpeg.c Fix a bunch of common typos. 2011-12-11 00:32:25 +01:00
INSTALL
library.mak build: rename subdir.mak ---> library.mak 2011-12-13 23:34:22 +01:00
LICENSE
Makefile build: rename subdir.mak ---> library.mak 2011-12-13 23:34:22 +01:00
README
RELEASE
version.sh

Libav README
------------

1) Documentation
----------------

* Read the documentation in the doc/ directory.

2) Licensing
------------

* See the LICENSE file.