- 21 May, 2015 17 commits
-
-
Michael Niedermayer authored
The image decoding code does expect the image to be decoded immedeatly Signed-off-by:
Michael Niedermayer <michaelni@gmx.at> (cherry picked from commit d2184bf3) Conflicts: libavfilter/lavfutils.c
-
Andreas Cadhalpun authored
The existing check has two problems: 1) i + count can overflow, so that the check '< 256' returns true. 2) In the (i == 'N') case occurs a j-- so that the loop runs once more. This can trigger the assertion 'nut->header_len[0] == 0' or cause segmentation faults or infinite hangs. Signed-off-by:
Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com> Signed-off-by:
Michael Niedermayer <michaelni@gmx.at> (cherry picked from commit 7c24ca1b) Signed-off-by:
Michael Niedermayer <michaelni@gmx.at>
-
Andreas Cadhalpun authored
This fixes a segmentation fault when accessing the metadata. Signed-off-by:
Michael Niedermayer <michaelni@gmx.at> (cherry picked from commit 3ff1af2b) Signed-off-by:
Michael Niedermayer <michaelni@gmx.at>
-
Andreas Cadhalpun authored
A negative frame rate triggers an av_assert2 in av_rescale_rnd. Signed-off-by:
Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com> Signed-off-by:
Michael Niedermayer <michaelni@gmx.at> (cherry picked from commit 66211058) Signed-off-by:
Michael Niedermayer <michaelni@gmx.at>
-
Michael Niedermayer authored
Signed-off-by:
Michael Niedermayer <michaelni@gmx.at> (cherry picked from commit e2877bdf) Signed-off-by:
Michael Niedermayer <michaelni@gmx.at>
-
Andreas Cadhalpun authored
s->decoded_buffer is allocated with a min_size of: 2 * FFALIGN(blockstodecode, 8) * sizeof(*s->decoded_buffer) Then it is assigned to s->decoded[0] (and s->decoded_buffer + FFALIGN(blockstodecode, 8) to s->decoded[1]) and passed as out buffer to decode_array_0000. In this function 64 elements of the out buffer are written unconditionally and outside the array if blockstodecode is too small. This causes memory corruption, leading to segmentation faults or other crashes. Thus change decode_array_0000 to write at most blockstodecode elements of the out buffer. Signed-off-by:
Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com> Signed-off-by:
Michael Niedermayer <michaelni@gmx.at> (cherry picked from commit 699341d6) Signed-off-by:
Michael Niedermayer <michaelni@gmx.at>
-
Maneesh Gupta authored
The opt_opencl_bench function copied the device name using strcpy without checking if the source string was larger. This patch fixes this by replacing the strcpy with av_strlcpy, with the string copy size capped to the destination buffer size. Signed-off-by:
Maneesh Gupta <maneesh.gupta@amd.com> Signed-off-by:
Michael Niedermayer <michaelni@gmx.at> (cherry picked from commit cf234552) Signed-off-by:
Michael Niedermayer <michaelni@gmx.at>
-
Andreas Cadhalpun authored
Otherwise range_start_decoding is not necessarily run and thus ctx->rc.range still 0 in range_dec_normalize leading to an infinite loop. Signed-off-by:
Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com> Signed-off-by:
Michael Niedermayer <michaelni@gmx.at> (cherry picked from commit 464c4915) Signed-off-by:
Michael Niedermayer <michaelni@gmx.at>
-
Rong Yan authored
swscale/ppc/swscale_altivec.c: POWER LE support in yuv2planeX_8() delete macro GET_VF() it was wrong GCC tool had a bug of PPC intrinsic interpret, which has been fixed in GCC 4.9.1. This bug lead to errors in two of our previous patches. We found this when we update our GCC tools to 4.9.1 and by reading the related info on GCC website. We fix our previous error in two separate commits Signed-off-by:
Michael Niedermayer <michaelni@gmx.at> (cherry picked from commit 603c8393) Signed-off-by:
Michael Niedermayer <michaelni@gmx.at>
-
James Zern authored
this quiets a warning: Failed to set VP8E_SET_NOISE_SENSITIVITY codec control: Unspecified internal error Reviewed-by:
Michael Niedermayer <michaelni@gmx.at> Signed-off-by:
James Zern <jzern@google.com> (cherry picked from commit 238ec505) Signed-off-by:
Michael Niedermayer <michaelni@gmx.at>
-
Michael Niedermayer authored
This avoids confusing syntax errors with awk later Likely fixes awk errors at: http://buildd.debian-ports.org/status/fetch.php?pkg=ffmpeg&arch=sparc64&ver=7%3A2.6.2-1&stamp=1428928967Reviewed-by:
Timothy Gu <timothygu99@gmail.com> Thanks-to: Andreas Cadhalpun <andreas.cadhalpun@googlemail.com> for the link Signed-off-by:
Michael Niedermayer <michaelni@gmx.at> (cherry picked from commit c0d847e4) Signed-off-by:
Michael Niedermayer <michaelni@gmx.at>
-
Andreas Cadhalpun authored
If rice_limit is 0, k can be 0 in decode_scalar, which calls show_bits(gb, k). Signed-off-by:
Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com> Signed-off-by:
Michael Niedermayer <michaelni@gmx.at> (cherry picked from commit 4b657a1b) Signed-off-by:
Michael Niedermayer <michaelni@gmx.at>
-
Andreas Cadhalpun authored
For max_order = 0 the clipping range is invalid. (amin = 2, amax = 1) Signed-off-by:
Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com> Signed-off-by:
Michael Niedermayer <michaelni@gmx.at> (cherry picked from commit 58d605ee) Signed-off-by:
Michael Niedermayer <michaelni@gmx.at>
-
Vittorio Giovara authored
Signed-off-by:
Michael Niedermayer <michaelni@gmx.at> (cherry picked from commit 32da94fa) Signed-off-by:
Michael Niedermayer <michaelni@gmx.at>
-
Andreas Cadhalpun authored
This fixes a NULL pointer dereference if vst->duration is 0. The problem was introduced in commit 0588acaf. Signed-off-by:
Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com> Signed-off-by:
Michael Niedermayer <michaelni@gmx.at> (cherry picked from commit 86d00ede) Signed-off-by:
Michael Niedermayer <michaelni@gmx.at>
-
Andreas Cadhalpun authored
Signed-off-by:
Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com> Signed-off-by:
Michael Niedermayer <michaelni@gmx.at> (cherry picked from commit b3408ae4) Signed-off-by:
Michael Niedermayer <michaelni@gmx.at>
-
Andreas Cadhalpun authored
Also change the type of begin, end and smp to ptrdiff_t to make the comparison well-defined. Signed-off-by:
Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com> Reviewed-by:
Thilo Borgmann <thilo.borgmann@mail.de> Signed-off-by:
Michael Niedermayer <michaelni@gmx.at> (cherry picked from commit afc7748d) Signed-off-by:
Michael Niedermayer <michaelni@gmx.at>
-
- 17 May, 2015 1 commit
-
-
Carl Eugen Hoyos authored
(cherry picked from commit ab3ff19f)
-
- 14 May, 2015 1 commit
-
-
Clément Bœsch authored
We already have a dependency on awk and bc is sometimes not found in the base system. Signed-off-by:
Martin Storsjö <martin@martin.st> (cherry picked from commit a982c5d7) Signed-off-by:
Timothy Gu <timothygu99@gmail.com> Conflicts: doc/platform.texi
-
- 21 Apr, 2015 1 commit
-
-
Timothy Gu authored
The server is properly equiped not to choke on that now. Signed-off-by:
Michael Niedermayer <michaelni@gmx.at> (cherry picked from commit 7ad27f12) Signed-off-by:
Michael Niedermayer <michaelni@gmx.at>
-
- 20 Apr, 2015 2 commits
-
-
Michael Niedermayer authored
Signed-off-by:
Michael Niedermayer <michaelni@gmx.at> (cherry picked from commit ba631b79) Signed-off-by:
Michael Niedermayer <michaelni@gmx.at>
-
Michael Niedermayer authored
Fixes double free with some applications Fixes vlc ticket14121 Signed-off-by:
Michael Niedermayer <michaelni@gmx.at> (cherry picked from commit e6e8cc8c) Signed-off-by:
Michael Niedermayer <michaelni@gmx.at>
-
- 18 Apr, 2015 3 commits
-
-
Andreas Cadhalpun authored
If begin is smaller than t, the subtraction 'begin -= t' wraps around, because begin is unsigned. The same applies for end < t. This causes segmentation faults. Signed-off-by:
Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com> Signed-off-by:
Michael Niedermayer <michaelni@gmx.at> (cherry picked from commit faf9fe2c) Signed-off-by:
Michael Niedermayer <michaelni@gmx.at>
-
Michael Niedermayer authored
Signed-off-by:
Michael Niedermayer <michaelni@gmx.at> (cherry picked from commit 7e104647) Conflicts: libavcodec/alsdec.c
-
Andreas Cadhalpun authored
If the same idx is used for more than one i, at least one entry in sconf->chan_pos remains uninitialized. This can cause segmentation faults. Signed-off-by:
Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com> Signed-off-by:
Michael Niedermayer <michaelni@gmx.at> (cherry picked from commit ef16501a) Signed-off-by:
Michael Niedermayer <michaelni@gmx.at>
-
- 17 Apr, 2015 15 commits
-
-
Michael Niedermayer authored
Signed-off-by:
Michael Niedermayer <michaelni@gmx.at>
-
Michael Niedermayer authored
Fixes fate failure on ARM (cherry picked from commit 38f67260) Signed-off-by:
Michael Niedermayer <michaelni@gmx.at>
-
Andreas Cadhalpun authored
This fixes an invalid read if end is 0: band_end = ff_ac3_bin_to_band_tab[end-1] + 1; Depending on what is before the array, this can cause stack smashing, when band_end becomes too large. Signed-off-by:
Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com> Signed-off-by:
Michael Niedermayer <michaelni@gmx.at> (cherry picked from commit bc4fee7f) Signed-off-by:
Michael Niedermayer <michaelni@gmx.at>
-
Andreas Cadhalpun authored
If band->thr is 0.0f, the division is undefined, making norm_fac not a number or infinity, which causes psy_band->threshold to become NaN. This is passed on to other variables until it finally reaches sce->sf_idx and is converted to an integer (-2147483648). This causes a segmentation fault when it is used as array index. Signed-off-by:
Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com> Reviewed-by:
Claudio Freire <klaussfreire@gmail.com> Signed-off-by:
Michael Niedermayer <michaelni@gmx.at> (cherry picked from commit e224aa41) Signed-off-by:
Michael Niedermayer <michaelni@gmx.at>
-
Andreas Cadhalpun authored
Signed-off-by:
Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com> Signed-off-by:
Michael Niedermayer <michaelni@gmx.at> (cherry picked from commit 0be54ad2) Signed-off-by:
Michael Niedermayer <michaelni@gmx.at>
-
Andreas Cadhalpun authored
ac may be NULL and then accessing ac->avctx results in a segmentation fault. Signed-off-by:
Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com> Signed-off-by:
Michael Niedermayer <michaelni@gmx.at> (cherry picked from commit 5b75689b) Signed-off-by:
Michael Niedermayer <michaelni@gmx.at>
-
Andreas Cadhalpun authored
This fixes segmentation faults, when pic->linesize[0] is negative. In that case 'line * pic->linesize[0] + pixel_ptr' is treated as unsigned and wraps around. This reverts commit 7d78a964. The problem was introduced in commit f7e1367f, which should obsolete that commit. Signed-off-by:
Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com> Signed-off-by:
Michael Niedermayer <michaelni@gmx.at> (cherry picked from commit ae6fd730) Signed-off-by:
Michael Niedermayer <michaelni@gmx.at>
-
Michael Niedermayer authored
Signed-off-by:
Michael Niedermayer <michaelni@gmx.at> (cherry picked from commit ff50b1b1) Signed-off-by:
Michael Niedermayer <michaelni@gmx.at>
-
Michael Niedermayer authored
swresample: Check channel layouts and channels against each other and print human readable error messages Signed-off-by:
Michael Niedermayer <michaelni@gmx.at> (cherry picked from commit 3c77bb5f) Signed-off-by:
Michael Niedermayer <michaelni@gmx.at>
-
Michael Niedermayer authored
(cherry picked from commit 80a28c75) Signed-off-by:
Michael Niedermayer <michaelni@gmx.at>
-
Michael Niedermayer authored
Signed-off-by:
Michael Niedermayer <michaelni@gmx.at> (cherry picked from commit d7b9cb2f) Signed-off-by:
Michael Niedermayer <michaelni@gmx.at>
-
Michael Niedermayer authored
Fixes Ticket4445 Tested-by:
Vittorio Giovara <vittorio.giovara@gmail.com> Signed-off-by:
Michael Niedermayer <michaelni@gmx.at> (cherry picked from commit bc48c889) Signed-off-by:
Michael Niedermayer <michaelni@gmx.at>
-
Michael Niedermayer authored
This more completely checks for truncation Signed-off-by:
Michael Niedermayer <michaelni@gmx.at> (cherry picked from commit 32e06c48) Signed-off-by:
Michael Niedermayer <michaelni@gmx.at>
-
Michael Niedermayer authored
Fixes Ticket4446 Signed-off-by:
Michael Niedermayer <michaelni@gmx.at> (cherry picked from commit 98d0c423) Conflicts: libavcodec/h264.c (cherry picked from commit 0cd0fa9d0baabd2dc0442ed8b53ba65282733b61) Signed-off-by:
Michael Niedermayer <michaelni@gmx.at>
-
Michael Niedermayer authored
Fixes Ticket4460 Signed-off-by:
Michael Niedermayer <michaelni@gmx.at> (cherry picked from commit e88b3852) Signed-off-by:
Michael Niedermayer <michaelni@gmx.at>
-