Kostya Shishkov
afc2263bcc
zmbv: correct indentation
13 years ago
Ronald S. Bultje
1744ab9e46
adpcm: convert adpcm_thp to bytestream2.
13 years ago
Ronald S. Bultje
72eda7786d
adpcm: convert adpcm_yamaha to bytestream2.
13 years ago
Ronald S. Bultje
f184735a27
adpcm: convert adpcm_swf to bytestream2.
13 years ago
Ronald S. Bultje
8afe2f9002
adpcm: convert adpcm_sbpro to bytestream2.
13 years ago
Ronald S. Bultje
834c81f4c5
adpcm: convert adpcm_ct to bytestream2.
13 years ago
Ronald S. Bultje
b3084e29e6
adpcm: convert adpcm_ima_amv/smjpeg to bytestream2.
13 years ago
Ronald S. Bultje
22c48d399d
adpcm: convert adpcm_ea_xas to bytestream2.
13 years ago
Ronald S. Bultje
edd9555537
adpcm: convert adpcm_ea_r1/2/3 to bytestream2.
13 years ago
Ronald S. Bultje
e60d09918c
adpcm: convert ea_maxis_xa to bytestream2.
13 years ago
Ronald S. Bultje
4a876eba8d
adpcm: convert adpcm_ea to bytestream2.
13 years ago
Ronald S. Bultje
524af484ed
adpcm convert adpcm_ima_ea_sead to bytestream2.
13 years ago
Ronald S. Bultje
8f2ed09289
adpcm: convert adpcm_ima_ea_eacs to bytestream2.
13 years ago
Ronald S. Bultje
159831cc09
adpcm: convert adpcm_xa to bytestream2.
13 years ago
Ronald S. Bultje
16b7a5e241
adpcm: convert ima_ws to bytestream2.
13 years ago
Ronald S. Bultje
74d7ac95fb
adpcm: convert adpcm_ima_apc to bytestream2.
13 years ago
Ronald S. Bultje
9721901440
adpcm: convert adpcm_ima_iss to bytestream2.
13 years ago
Ronald S. Bultje
1da9587026
adpcm: convert adpcm_dk3 to bytestream2.
13 years ago
Ronald S. Bultje
d570a96808
adpcm: convert adpcm_dk4 to bytestream2.
13 years ago
Ronald S. Bultje
5353ee3c30
adpcm: convert adpcm_ms to bytestream2.
13 years ago
Ronald S. Bultje
89f3aa8ce2
adpcm: use av_clip() in adpcm_ima_expand_nibble().
13 years ago
Ronald S. Bultje
689be85a9a
adpcm: convert adpcm_4xm to bytestream2.
13 years ago
Ronald S. Bultje
39505f4240
adpcm: convert adpcm_ima_wav to bytestream2.
13 years ago
Ronald S. Bultje
9604307dd8
adpcm: convert adpcm_ima_qt to bytestream2.
13 years ago
Ronald S. Bultje
c346f6304c
adpcm: fix nb_samples rounding for adpcm_ima_dk3, and update reference.
13 years ago
Diego Biurrun
f36d5c1422
Update Janne's email address.
13 years ago
Diego Biurrun
f03183d9a8
bytestream: Eliminate one level of pointless macro indirection.
13 years ago
Ronald S. Bultje
abe3c697a3
xwd: convert to bytestream2.
13 years ago
Paul B Mahol
5a3a906ba2
vqavideo: port to bytestream2 API
...
Protects against overreads.
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
13 years ago
Kostya Shishkov
6acac061ab
prores: allow user to set fixed quantiser
13 years ago
Paul B Mahol
0afd8f12e9
avcodec: add XBM encoder
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
13 years ago
Justin Ruggles
6ca3b248e2
resample: allocate a large enough output buffer
...
Fixes invalid writes and crashes when doing conversions such as stereo to 5.1
channels or sample rate conversion on 5.1 channels.
13 years ago
Justin Ruggles
c3da9f5060
wmaenc: remove bit-exact hack
...
It may have improved cross-platform stability, but wasn't the only place in
the encoder with bitexact issues. It is no longer needed because we have FATE
tests for float encoders using fuzzy comparison.
13 years ago
Aneesh Dogra
de64d8cf17
qtrle: Use bytestream2 functions to prevent buffer overreads.
...
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
13 years ago
Paul B Mahol
341404f753
vqavideo: check malloc return values
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
13 years ago
Uoti Urpala
05b9a89ed7
threads: fix old frames returned after avcodec_flush_buffers()
...
Calling avcodec_flush_buffers() and then avcodec_decode_video2() with
a 0-sized packet (to get remaining buffered frames) could incorrectly
return an old frame from before the avcodec_flush_buffers() call. Add
a loop in ff_thread_flush() to zero the got_frame field of each thread
to ensure the old frames will not be returned.
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
13 years ago
Janne Grunau
7b60799aa8
MPV: always mark dummy frames as reference
...
If the dummy frame are not created from a reference frame they could
be deleted untimely resulting in multithreaded decoder waiting on
the current frame to finish.
Noticed by Ronald S. Bultje in the RV34 decoder with a broken file.
13 years ago
Ronald S. Bultje
1e26a48fa2
h264: fix deadlocks on incomplete reference frame decoding.
...
If decoding a second complementary field, and the first was
decoded in our thread, mark decoding of that field as complete.
If decoding fails, mark the decoded field/frame as complete.
Do not allow switching between field modes or field/frame mode
between slices within the same field/frame. Ensure that two
subsequent fields cover top/bottom (rather than top/frame,
bottom/frame or such nonsense situations).
Fixes various deadlocks when decoding samples with errors in
reference frames.
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable@libav.org
13 years ago
Ronald S. Bultje
c6ccb96bc9
mpeg4: report frame decoding completion at ff_MPV_frame_end().
...
Prevents hangs on corrupt input.
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable@libav.org
13 years ago
Ronald S. Bultje
80387f0e25
mimic: don't use self as reference, and report completion at end of decode().
...
Fixes hangs on corrupt samples that reference self-frames.
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable@libav.org
13 years ago
Diego Biurrun
e5d403720e
h264: K&R formatting cosmetics
...
Also remove some disabled code and fix a few comment typos.
13 years ago
Diego Biurrun
ad4cec6b80
s3tc.h: Add missing #include to fix standalone header compilation.
13 years ago
Paul B Mahol
702985b8b7
dxa: remove useless code
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Anton Khirnov <anton@khirnov.net>
13 years ago
Ronald S. Bultje
e0febda22d
h264: stricter reference limit enforcement.
...
Progressive images can have only 16 references, error out if there are
more, since the data is almost certainly corrupt, and the invalid value
will lead to random crashes or invalid writes later on.
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable@libav.org
13 years ago
Ronald S. Bultje
48cbe4b092
h264: increase reference poc list from 16 to 32.
...
Interlaced images can have 32 references (16 per field), so limiting the
array size to 16 leads to invalid writes.
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable@libav.org
13 years ago
Ronald S. Bultje
86020073db
xa_adpcm: limit filter to prevent xa_adpcm_table[] array bounds overruns.
...
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable@libav.org
13 years ago
Michael Niedermayer
1f8ff2b13c
snow: check reference frame indices.
...
Fixes NULL ptr dereference
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable@libav.org
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
13 years ago
Michael Niedermayer
c9837954e7
snow: reject unsupported chroma shifts.
...
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable@libav.org
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
13 years ago
Paul B Mahol
5b4d026a03
anm: convert to bytestream2 API
...
Protects from overreads.
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
13 years ago
Paul B Mahol
f1ce053cd0
bytestream: add more unchecked variants for bytestream2 API
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
13 years ago