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
Vittorio Giovara
2ffb0598db
mlpdec: check for negative index
CC: libav-stable@libav.org
Bug-Id: CID 970924
11 years ago
Vittorio Giovara
6abe7edabb
ffv1: fix out-of-bounds read
CC: libav-stable@libav.org
Bug-Id: CID 1047234
11 years ago
Vittorio Giovara
5aa710f461
vorbisenc: add missing parenthesis
Bug-Id: CID 1238791
11 years ago
Vittorio Giovara
e9a6ae775d
dpxenc: mention missing break
Bug-Id: CID 732229
11 years ago
Vittorio Giovara
4dda5e9b08
sunrastenc: mention missing break
Bug-Id: CID 732231
11 years ago
Vittorio Giovara
28d82b7675
vc1dec: refactor check with missing parenthesis
FATE tests updated accordingly, no visual difference.
CC: libav-stable@libav.org
Bug-Id: CID 1087087
11 years ago
Vittorio Giovara
2c98dc75f2
vc1dec: always initialize tx and ty
CC: libav-stable@libav.org
Bug-Id: CID 1245702 / CID 1245703
11 years ago
Vittorio Giovara
e3f50f2471
dnxhdenc: check negative index
CC: libav-stable@libav.org
Bug-Id: CID 700464
11 years ago
Vittorio Giovara
b1b1a7370e
display: fix order of operands
CC: libav-stable@libav.org
Bug-Id: CID 1238828 / CID 1238832
11 years ago