Martin Storsjö
f20141d73f
vorbis_parser: Include stdint.h in the header, to make it work standalone
This fixes "make checkheaders".
Signed-off-by: Martin Storsjö <martin@martin.st>
11 years ago
Michael Niedermayer
57ed5a64fe
hnm4: change width/height to int to fix hypothetical integer overflows
CC: libav-stable@libav.org
Bug-Id: CID 1135770 / CID 1135771
11 years ago
Luca Barbato
16158da960
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
11 years ago
Michael Niedermayer
51946d2de8
vc1: Use the correct shift amount
`is_intra` is a 6bits bitfield.
CC: libav-stable@libav.org
Bug-Id: CID 1194380 / CID 1194381
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
11 years ago
Luca Barbato
d25afb579f
vc1: Set the is_intra bitfield to all 1 when needed
Keep the code as similar as possible across the codepaths to
ease spotting it for factorization.
Based on a patch from Michael Niedermayer <michaelni@gmx.at>.
11 years ago
Luca Barbato
b67138598c
vc1: Simplify a little setting the intra variables
The code currently set the information in at least 4 places, spare
some pointless loops.
Make the code in the loop a little uniform to make easier factorize
it out later.
11 years ago
Michael Niedermayer
62e52b94e6
vorbis_parser: Move vp check to avoid a null pointer dereference
CC: libav-stable@libav.org
Bug-Id: CID 1251347
11 years ago
Michael Niedermayer
c117da9d3e
lpc: remove unneeded {}
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years ago
Vittorio Giovara
bc75b64cff
vc1pred: remove logically dead code
CC: libav-stable@libav.org
Bug-Id: CID 1245699 / CID 1245700
11 years ago
Vittorio Giovara
208f3abb91
aacsbr: always initialize max_qmf_subbands
Fixes a wordly warning from clang -Wsometimes-uninitialized.
11 years ago
Michael Niedermayer
55b59fab88
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>
11 years ago
Vittorio Giovara
0562887a98
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
11 years ago
Luca Barbato
299d8ab104
cook: Make sure there is enough extradata
At least 8 bytes are needed (Mono audio).
Bug-Id: CID 741418
CC: libav-stable@libav.org
11 years ago
Vittorio Giovara
b99ca86350
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
11 years ago
Vittorio Giovara
277ff7f5dc
lavu: move internal define to the only places where it is used
11 years ago
Vittorio Giovara
9c12c6ff95
motion_est: convert stride to ptrdiff_t
CC: libav-stable@libav.org
Bug-Id: CID 700556 / CID 700557 / CID 700558
11 years ago
Luca Barbato
cd975d5658
hevc: Spin the mv_mpv_mode calls in a stand alone function
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
11 years ago
Vittorio Giovara
1f80742f49
qdm2: avoid integer overflow
CC: libav-stable@libav.org
Bug-Id: CID 700555
11 years ago
Luca Barbato
312daa1589
vp9: Use the correct upper bound for seg_id
And use a macro to make apparent why the value.
Bug-Id: CID 1108595
11 years ago
Luca Barbato
d466d82faa
dvdsubdec: Do not leak on failure path
CC: libav-stable@libav.org
Bug-Id: CID 1198262
11 years ago
Vittorio Giovara
a42d5c861f
libtwolame: prevent a NULL pointer dereference
CC: libav-stable@libav.org
Bug-Id: CID 1250330 / CID 1250335
11 years ago
Martin Storsjö
aa8b39d999
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>
11 years ago
Vittorio Giovara
85dc006b1a
lavc: fix bitshifts amount bigger than the type
CC: libav-stable@libav.org
Bug-Id: CID 1194387 / CID 1194389 / CID 1194393 / CID 1206638
11 years ago
Vittorio Giovara
771656bd85
libvpxenc: clean memory on error
CC: libav-stable@libav.org
Bug-Id: CID 733795
11 years ago
Anton Khirnov
8b573ddda7
hevc: remove superfluous assignments and checks
11 years ago
Anton Khirnov
eac3ac1fe0
hevc: eliminate an unneeded intermediate variable
11 years ago
Anton Khirnov
eb335f3c5c
hevc: reduce variable scope
Also, collapse the array into a scalar, since only one value is needed
at a time.
11 years ago
Anton Khirnov
84c0ece5fd
hevc: further reduce code duplication in hls_prediction_unit()
11 years ago
Anton Khirnov
a7b365ae19
hevc: reduce code duplication in hls_prediction_unit()
11 years ago
Anton Khirnov
de1f8ead89
hevcdsp_template: templatize transquant_bypass
11 years ago
Anton Khirnov
16c01fb434
hevc: remove an unused function parameter
11 years ago
Anton Khirnov
84b9463984
hevc: remove a redundant line
pred_mode is overwritten a few lines immediately below.
11 years ago
Anton Khirnov
2c6a7f9348
hevc: do not store rqt_root_cbf in the context
It does not need to be accessed outside of hls_coding_unit().
11 years ago
Anton Khirnov
920bca3e23
hevc: do not store pcm_flag in the context
It does not need to be accessed outside of hls_coding_unit().
11 years ago
Martin Storsjö
c00365b46d
aarch64: Make the function pointer tables position independent
This allows running the code on android, where 64 bit binaries with
text relocations aren't allowed to be loaded.
Signed-off-by: Martin Storsjö <martin@martin.st>
11 years ago
Michael Niedermayer
2fa6d21124
on2avc: Fix out of array access
CC: libav-stable@libav.org
Bug-Id: CID 1206648
11 years ago
Luca Barbato
74d7db586a
dv: Drop a spurious check
The buffer is always valid.
Bug-Id: CID 700682
11 years ago
Vittorio Giovara
d16ec1b6db
atrac3plus: always initialize refwaves
CC: libav-stable@libav.org
Bug-Id: CID 1163851
11 years ago
Vittorio Giovara
60e0ee7ca2
lpc: always initialize ref and err
CC: libav-stable@libav.org
Bug-Id: CID 29585 / CID 700759
11 years ago
Vittorio Giovara
3a6ddfb874
exr: check return value
CC: libav-stable@libav.org
Bug-Id: CID 1198259
11 years ago
Thilo Borgmann
e4cb6abb2f
bgmc: fix sizeof arguments
CC: libav-devel@libav.org
Bug-Id: CID 608084 / CID 700724
11 years ago
Vittorio Giovara
a2448cfe16
jpeg2000: do not compute the same value twice
CC: libav-stable@libav.org
Bug-Id: CID 1026771 / CID 1026772 / CID 1026773
11 years ago
Vittorio Giovara
59846452af
svq1enc: check ff_get_buffer return value
CC: libav-stable@libav.org
Bug-Id: CID 747723
11 years ago
Vittorio Giovara
994ab1804b
ansi: check ff_set_dimensions return value
CC: libav-stable@libav.org
Bug-Id: CID 1135737
11 years ago
Vittorio Giovara
c7384664ba
avs: check ff_set_dimensions return value
CC: libav-stable@libav.org
Bug-Id: CID 1135738
11 years ago
Vittorio Giovara
2b5c1efa14
g2meet: check ff_set_dimensions return value
CC: libav-stable@libav.org
Bug-Id: CID 1135739
11 years ago
Vittorio Giovara
c6d7c201df
indeo3: check ff_set_dimensions return value
CC: libav-stable@libav.org
Bug-Id: CID 1135740
11 years ago
Vittorio Giovara
8e104619a6
shorten: check for return value
Avoid a possible negative bitshift.
CC: libav-stable@libav.org
Bug-Id: CID 1194400
11 years ago
Vittorio Giovara
d5d2d6c3b8
dcadec: initialize variables before use
CC: libav-stable@libav.org
Bug-Id: CID 700751 / CID 700752
11 years ago
Vittorio Giovara
1a9c1333b5
escape124: explicitly set get_bits1 variable
Makes coverity less confused.
CC: libav-stable@libav.org
Bug-Id: CID 1203487
11 years ago