Michael Niedermayer
a31fdcef55
avcodec/mpegvideo_enc: Fix number suffixes in rc_buffer_size calculation
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
(cherry picked from commit 4531e2c489 )
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-02-13 20:48:08 +01:00
Michael Niedermayer
8a16b27de9
avcodec/h264_cabac: use int instead of long for mbb_xy
...
The mb address fits in int
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
(cherry picked from commit 592ba6ec10 )
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-02-13 20:48:08 +01:00
Michael Niedermayer
096fd2698a
avcodec/dxtory: Use LL instead of L number suffix
...
This is probably unneeded and normal int would be fine, but its
safer to use LL and this isnt speed relevant
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
(cherry picked from commit b4ad2853c5 )
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-02-13 20:48:08 +01:00
Michael Niedermayer
6feb72a094
Merge commit '431f57f0467244686ae63a3d06a8cf51f60090ed' into release/2.4
...
* commit '431f57f0467244686ae63a3d06a8cf51f60090ed':
libopusenc: prevent an out-of-bounds read by returning early
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2015-01-18 03:27:11 +01:00
Michael Niedermayer
02d979d007
Merge commit '88411b87b4bb3c5820ec232f26ba4a284c11a7f9' into release/2.4
...
* commit '88411b87b4bb3c5820ec232f26ba4a284c11a7f9':
display: fix order of operands
Conflicts:
libavcodec/h264.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2015-01-18 03:22:15 +01:00
Michael Niedermayer
fb62580fb6
Merge commit '3f09d4f6d43468dbc9307bb937516a32287008dc' into release/2.4
...
* commit '3f09d4f6d43468dbc9307bb937516a32287008dc':
ffv1: fix out-of-bounds read
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2015-01-18 03:21:35 +01:00
Michael Niedermayer
98ba288737
Merge commit '9e0a38d32b36fac7fd73bdb93e820ae0b9e03616' into release/2.4
...
* commit '9e0a38d32b36fac7fd73bdb93e820ae0b9e03616':
avs: check ff_set_dimensions return value
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2015-01-18 02:59:01 +01:00
Michael Niedermayer
baef2736b0
Merge commit '39e07ac9fcaf3d412f9a33f427072e8ded032d24' into release/2.4
...
* commit '39e07ac9fcaf3d412f9a33f427072e8ded032d24':
ansi: check ff_set_dimensions return value
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2015-01-18 02:57:48 +01:00
Michael Niedermayer
4e251b23c3
Merge commit '61fdbf7ff64c0ae1bdd6a8d573092dc6924c1dba' into release/2.4
...
* commit '61fdbf7ff64c0ae1bdd6a8d573092dc6924c1dba':
lavc: fix bitshifts amount bigger than the type
Conflicts:
libavcodec/internal.h
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2015-01-18 02:34:25 +01:00
Paul B Mahol
375c1050bf
libavcodec/libtwolame: fix null pointer dereference
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
(cherry picked from commit a586b3d9b1 )
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-01-18 02:24:53 +01:00
Michael Niedermayer
c2b658c0e7
Merge commit '5891fd017aa7bed4c423b8511090cf8641a0afa4' into release/2.4
...
* commit '5891fd017aa7bed4c423b8511090cf8641a0afa4':
dvdsubdec: Do not leak on failure path
Conflicts:
libavcodec/dvdsubdec.c
See: 7fa9f7ef1c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2015-01-18 02:15:10 +01:00
Michael Niedermayer
6f14434218
Merge commit '484e015dc8b9983297e9269b406c65084daf4528' into release/2.4
...
* commit '484e015dc8b9983297e9269b406c65084daf4528':
cook: Make sure there is enough extradata
See: c9e4554329
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2015-01-18 02:02:00 +01:00
Michael Niedermayer
49f477071d
Merge commit 'b82170336f90d06c645d8252ddeccfc92c2f9ccb' into release/2.4
...
* commit 'b82170336f90d06c645d8252ddeccfc92c2f9ccb':
tiffenc: initialize return value
Conflicts:
libavcodec/tiffenc.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2015-01-18 02:00:54 +01:00
Michael Niedermayer
5b965a508c
Merge commit '12e1a7013a53ad957c4ff11a3aebc0763024d24b' into release/2.4
...
* commit '12e1a7013a53ad957c4ff11a3aebc0763024d24b':
roqaudio: Always use the frame buffer on flush
Conflicts:
libavcodec/roqaudioenc.c
See: a1af505d66
See: c0b17ea106
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2015-01-18 02:00:21 +01:00
Michael Niedermayer
6cb8e40f43
Merge commit 'e7ee74485b436c34591177c18c8643764a55d516' into release/2.4
...
* commit 'e7ee74485b436c34591177c18c8643764a55d516':
hnm4: Use av_image_check_size
See: e23b18321f
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2015-01-18 01:59:36 +01:00
Michael Niedermayer
f038623d53
Merge commit '2a75c0b1ca16b5480497de0d4c79ef122406a0b5' into release/2.4
...
* commit '2a75c0b1ca16b5480497de0d4c79ef122406a0b5':
aacsbr: change order of operation to prevent out of array read
Conflicts:
libavcodec/aacsbr.c
See: c2340831b8
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2015-01-18 01:41:30 +01:00
Michael Niedermayer
12d6bbf7cb
Merge commit '1fd55ec507f6f47b4d9fddf8e79a0df4540ef6e4' into release/2.4
...
* commit '1fd55ec507f6f47b4d9fddf8e79a0df4540ef6e4':
svq1dec: Unbreak the scratch buffer allocation
Conflicts:
libavcodec/svq1dec.c
See: 4213fc5b9e
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2015-01-18 00:05:18 +01:00
Michael Niedermayer
0d801c0bfd
Merge commit '20f9cf744a9a82ac4b269cb4317a5d59a8553baf' into release/2.4
...
* commit '20f9cf744a9a82ac4b269cb4317a5d59a8553baf':
vaapi: wrap codec specific functions in appropiate #ifs
Conflicts:
libavcodec/vaapi.c
See: f2118d44c9
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2015-01-17 23:58:28 +01:00
Michael Niedermayer
9d43e51eec
Merge commit '20d6ae4626a42fbc6e7b9c0040bdd64397b23e11' into release/2.4
...
* commit '20d6ae4626a42fbc6e7b9c0040bdd64397b23e11':
hevc: always clip luma_log2_weight_denom
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2015-01-17 23:56:07 +01:00
Michael Niedermayer
73046fa195
Merge commit '23fe589e19487bc9a40b77dae9509068da5b14b8' into release/2.4
...
* commit '23fe589e19487bc9a40b77dae9509068da5b14b8':
prores: Evaluate all the quantizers
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2015-01-17 23:55:12 +01:00
Michael Niedermayer
0295615f0a
Merge commit '9bd4561d74a46dd6557140e286228e09e380674c' into release/2.4
...
* commit '9bd4561d74a46dd6557140e286228e09e380674c':
tiff: Check the check_size() return value and forward it
Conflicts:
libavcodec/tiffenc.c
See: d50aa006fb
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2015-01-17 23:25:41 +01:00
Michael Niedermayer
0afeb76e75
Merge commit '1411f073fdceeff1f39dbaa035c3c0275f69095f' into release/2.4
...
* commit '1411f073fdceeff1f39dbaa035c3c0275f69095f':
aacenc: correctly check returned value
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2015-01-17 23:08:10 +01:00
Michael Niedermayer
3cc8822c93
Merge commit '3d0752d82f8eaa326cff306ae50b0186a5b4d304' into release/2.4
...
* commit '3d0752d82f8eaa326cff306ae50b0186a5b4d304':
xsub: Support DXSA subtitles
Conflicts:
libavcodec/xsubdec.c
See: d6f910ea47
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2015-01-17 23:01:33 +01:00
Michael Niedermayer
05b1ac2470
Merge commit 'bfe18be88a66da25b60a091de6011197dcb231fd' into release/2.4
...
* commit 'bfe18be88a66da25b60a091de6011197dcb231fd':
mpeg4audio: check the init_get_bits() return value
Conflicts:
libavcodec/mpeg4audio.c
See: deefdf9788
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2015-01-17 23:00:30 +01:00
Vittorio Giovara
431f57f046
libopusenc: prevent an out-of-bounds read by returning early
...
CC: libav-stable@libav.org
Bug-Id: CID 1244188
(cherry picked from commit 8dd0a2c5cf )
Signed-off-by: Luca Barbato <lu_zero@gentoo.org >
2015-01-13 00:16:42 +01:00
Vittorio Giovara
88411b87b4
display: fix order of operands
...
CC: libav-stable@libav.org
Bug-Id: CID 1238828 / CID 1238832
(cherry picked from commit b1b1a7370e )
Signed-off-by: Luca Barbato <lu_zero@gentoo.org >
2015-01-13 00:16:42 +01:00
Vittorio Giovara
3f09d4f6d4
ffv1: fix out-of-bounds read
...
CC: libav-stable@libav.org
Bug-Id: CID 1047234
(cherry picked from commit 6abe7edabb )
Signed-off-by: Luca Barbato <lu_zero@gentoo.org >
2015-01-13 00:16:41 +01:00
Vittorio Giovara
9e0a38d32b
avs: check ff_set_dimensions return value
...
CC: libav-stable@libav.org
Bug-Id: CID 1135738
(cherry picked from commit c7384664ba )
Signed-off-by: Luca Barbato <lu_zero@gentoo.org >
2015-01-13 00:16:41 +01:00
Vittorio Giovara
39e07ac9fc
ansi: check ff_set_dimensions return value
...
CC: libav-stable@libav.org
Bug-Id: CID 1135737
(cherry picked from commit 994ab1804b )
Signed-off-by: Luca Barbato <lu_zero@gentoo.org >
2015-01-13 00:16:41 +01:00
Vittorio Giovara
61fdbf7ff6
lavc: fix bitshifts amount bigger than the type
...
CC: libav-stable@libav.org
Bug-Id: CID 1194387 / CID 1194389 / CID 1194393 / CID 1206638
(cherry picked from commit 85dc006b1a )
Signed-off-by: Luca Barbato <lu_zero@gentoo.org >
2015-01-13 00:16:41 +01:00
Vittorio Giovara
3aba00b1b3
indeo3: check ff_set_dimensions return value
...
CC: libav-stable@libav.org
Bug-Id: CID 1135740
(cherry picked from commit c6d7c201df )
Signed-off-by: Luca Barbato <lu_zero@gentoo.org >
2015-01-13 00:16:41 +01:00
Vittorio Giovara
21aeae9c67
svq1enc: check ff_get_buffer return value
...
CC: libav-stable@libav.org
Bug-Id: CID 747723
(cherry picked from commit 59846452af )
Signed-off-by: Luca Barbato <lu_zero@gentoo.org >
2015-01-13 00:16:41 +01:00
Vittorio Giovara
796bd81835
g2meet: check ff_set_dimensions return value
...
CC: libav-stable@libav.org
Bug-Id: CID 1135739
(cherry picked from commit 2b5c1efa14 )
Signed-off-by: Luca Barbato <lu_zero@gentoo.org >
2015-01-13 00:16:41 +01:00
Michael Niedermayer
dd195c2c58
on2avc: Fix out of array access
...
CC: libav-stable@libav.org
Bug-Id: CID 1206648
(cherry picked from commit 2fa6d21124 )
Signed-off-by: Luca Barbato <lu_zero@gentoo.org >
2015-01-13 00:16:41 +01:00
Martin Storsjö
5276174859
lavc: Move the libtwolame encoder registration to the list for external libraries
...
This makes sure the default behaviour of using the internal encoder
stays the same regardless if libtwolame is enabled or not (as for
any external library).
This fixes fate-lavf-mpg if libav is built with libtwolame enabled.
CC: libav-stable@libav.org
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com >
(cherry picked from commit aa8b39d999 )
Signed-off-by: Luca Barbato <lu_zero@gentoo.org >
2015-01-13 00:16:41 +01:00
Luca Barbato
5891fd017a
dvdsubdec: Do not leak on failure path
...
CC: libav-stable@libav.org
Bug-Id: CID 1198262
(cherry picked from commit d466d82faa )
Signed-off-by: Luca Barbato <lu_zero@gentoo.org >
2015-01-13 00:16:40 +01:00
Luca Barbato
484e015dc8
cook: Make sure there is enough extradata
...
At least 8 bytes are needed (Mono audio).
Bug-Id: CID 741418
CC: libav-stable@libav.org
(cherry picked from commit 299d8ab104 )
Signed-off-by: Luca Barbato <lu_zero@gentoo.org >
2015-01-13 00:16:40 +01:00
Vittorio Giovara
b82170336f
tiffenc: initialize return value
...
'ret' can only be used without initialization if s->height <= 0, which can
only happen if avctx->height <= 0, which is validated elsewhere. Doesn't hurt
to still initialize it though.
CC: libav-stable@libav.org
Bug-Id: CID 732296
(cherry picked from commit 0562887a98 )
Signed-off-by: Luca Barbato <lu_zero@gentoo.org >
2015-01-13 00:16:40 +01:00
Michael Niedermayer
12e1a7013a
roqaudio: Always use the frame buffer on flush
...
Prevent NULL dereference.
CC: libav-stable@libav.org
Bug-Id: CID 703669
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com >
(cherry picked from commit 55b59fab88 )
Signed-off-by: Luca Barbato <lu_zero@gentoo.org >
2015-01-13 00:16:40 +01:00
Vittorio Giovara
e9aeaa6441
qdm2: avoid integer overflow
...
CC: libav-stable@libav.org
Bug-Id: CID 700555
(cherry picked from commit 1f80742f49 )
Signed-off-by: Luca Barbato <lu_zero@gentoo.org >
2015-01-13 00:16:40 +01:00
Vittorio Giovara
4d11e4b47d
libtwolame: prevent a NULL pointer dereference
...
CC: libav-stable@libav.org
Bug-Id: CID 1250330 / CID 1250335
(cherry picked from commit a42d5c861f )
Signed-off-by: Luca Barbato <lu_zero@gentoo.org >
2015-01-13 00:16:40 +01:00
Vittorio Giovara
fbc20c3b85
aacdec: avoid an out-of-bounds write
...
Also move the check in the case it is actually used.
CC: libav-stable@libav.org
Bug-Id: CID 1087090
(cherry picked from commit b99ca86350 )
Signed-off-by: Luca Barbato <lu_zero@gentoo.org >
2015-01-13 00:16:40 +01:00
Luca Barbato
e7ee74485b
hnm4: Use av_image_check_size
...
As done for all the other codecs not calling it indirectly.
CC: libav-stable@libav.org
Bug-Id: CID 1135770 / CID 1135771
2015-01-13 00:09:37 +01:00
Vittorio Giovara
4edbb0955e
png_parser: fix size of chunk_lenght
...
Fixes the comparison against constant value 0x7fffffff.
CC: libav-stable@libav.org
Bug-Id: CID 1198260
2015-01-13 00:06:40 +01:00
Michael Niedermayer
2a75c0b1ca
aacsbr: change order of operation to prevent out of array read
...
CC: libav-stable@libav.org
Bug-Id: CID 732250
2015-01-13 00:06:07 +01:00
Michael Niedermayer
1fd55ec507
svq1dec: Unbreak the scratch buffer allocation
...
The input packets are always assumed to be padded and
the av_fast_ family of function takes a pointer to a pointer.
Thanks to Nicolas Dufresne <nicolas.dufresne@collabora.com > for
a similar patch.
Introduced in 7b588bb691 .
Bug-Id: 766
CC: libav-stable@libav.org
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
Signed-off-by: Luca Barbato <lu_zero@gentoo.org >
2015-01-12 23:16:05 +01:00
Thiago Santos
20f9cf744a
vaapi: wrap codec specific functions in appropiate #ifs
...
Fix linking when only a subset of vaapi decoders is enabled.
Bug-Id: 760
CC: libav-stable@libav.org
Signed-off-by: Rémi Denis-Courmont <remi@remlab.net >
Signed-off-by: Luca Barbato <lu_zero@gentoo.org >
2015-01-12 23:16:05 +01:00
Vittorio Giovara
20d6ae4626
hevc: always clip luma_log2_weight_denom
...
Its value shall be between 0 and 7 according to the specifications.
CC: libav-stable@libav.org
Bug-Id: CID 1257502
2015-01-12 23:16:05 +01:00
Luca Barbato
23fe589e19
prores: Evaluate all the quantizers
...
Prevent an uninitialized data access.
CC: libav-stable@libav.org
Bug-Id: CID 703824 / CID 703825
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com >
Signed-off-by: Luca Barbato <lu_zero@gentoo.org >
2015-01-12 23:15:19 +01:00
Luca Barbato
9bd4561d74
tiff: Check the check_size() return value and forward it
...
Also use the same type for add_entry and check_size.
Bug-Id: CID 700699
CC: libav-stable@libav.org
Signed-off-by: Luca Barbato <lu_zero@gentoo.org >
Signed-off-by: Vittorio Giovara <vittorio.giovarao@gmail.com >
2015-01-12 23:15:03 +01:00