Justin Ruggles
67aec401d8
libspeexdec: set frame size in libspeex_decode_init()
This fixes speex decoding, which was broken in 85469f1c .
14 years ago
Franz Brauße
12cbbbb4ab
smacker audio: sign-extend the initial 16-bit predicted value
Fixes Bug #265
Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
14 years ago
Diego Biurrun
b691fd7a4d
h264: drop ff_h264_ prefix from static function ff_h264_decode_rbsp_trailing()
14 years ago
Diego Biurrun
9ad80ef3db
h264: Make ff_h264_decode_end() static, it is not used externally.
Also drop the now unnecessary ff_ prefix from its name.
14 years ago
Ronald S. Bultje
0399fe0fd2
lzw: fix potential integer overflow.
14 years ago
Ronald S. Bultje
b7b1509d06
truemotion: forbid invalid VLC bitsizes and token values.
SHOW_UBITS() is only defined up to n_bits is 25, therefore forbid
values larger than this in get_vlc2() (max_bits). tokens[][] can be
used as an index in deltas[], which has a size of 64, so ensure the
values are smaller than that.
This prevents crashes on corrupt bitstreams.
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable@libav.org
14 years ago
Ronald S. Bultje
bf39d3b59d
truemotion2: handle out-of-frame motion vectors through edge extension.
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable@libav.org
14 years ago
Kostya Shishkov
a05c41acd1
mp3dec: perform I/S and M/S only when frame mode is joint stereo.
Looks like some LAME versions produce dual stereo mode MP3s with
flags for intensity and middle stereo set. In this mode those flags
should be ignored like the reference decoder and derived ones do.
14 years ago
Ronald S. Bultje
ddcf67c8a5
lzw: prevent buffer overreads.
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable@libav.org
14 years ago
Mashiat Sarker Shakkhar
28e8c4d59a
WMAL: Remove inaccurate and unnecessary doxy
A call to decode_packet() does not always decode a complete WMA packet.
Moreover, this is not the correct place to document calls that are part
of the public API.
Signed-off-by: Diego Biurrun <diego@biurrun.de>
14 years ago
Ronald S. Bultje
63a1b481f6
h264: fix cabac-on-stack after safe cabac reader.
14 years ago
Ronald S. Bultje
bd508d435b
truemotion2: convert packet header reading to bytestream2.
Also use correct buffer sizes in calls to tm2_read_stream(). Together,
this prevents overreads.
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable@libav.org
14 years ago
Ronald S. Bultje
a940198130
cabac: add overread protection to BRANCHLESS_GET_CABAC().
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
14 years ago
Ronald S. Bultje
448dc42571
cabac: increment jump locations by one in callers of BRANCHLESS_GET_CABAC().
14 years ago
Ronald S. Bultje
16f6e83f74
cabac: remove unused argument from BRANCHLESS_GET_CABAC_UPDATE().
14 years ago
Ronald S. Bultje
951014e5bb
cabac: use struct+offset instead of memory operand in BRANCHLESS_GET_CABAC().
14 years ago
Ronald S. Bultje
a0bdcb019e
h264: add overread protection to get_cabac_bypass_sign_x86().
14 years ago
Ronald S. Bultje
95bfa4ead7
h264: reindent get_cabac_bypass_sign_x86().
14 years ago
Ronald S. Bultje
db025929f2
h264: use struct offsets in get_cabac_bypass_sign_x86().
14 years ago
Ronald S. Bultje
7374fac804
h264: fix overreads in cabac reader.
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable@libav.org
14 years ago
Ronald S. Bultje
d360dd902c
wmall: fix seeking.
14 years ago
Ronald S. Bultje
0a82f5275f
lagarith: fix buffer overreads.
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable@libav.org
14 years ago
Diego Biurrun
c0b34e6148
dvdec: drop unnecessary dv_tablegen.h #include
dvdec.c uses nothing from dv_tablegen.h. As a welcome side-effect, this
fixes compilation of that file with hardcoded tables enabled.
14 years ago
Diego Biurrun
a92be9b856
Replace memset(0) by zero initializations.
Also remove one pointless zero initialization in rangecoder.c.
14 years ago
Diego Biurrun
856c8e0a04
faandct: Remove FAAN_POSTSCALE define and related code.
It is not a user-accessible option and unlikely to ever be changed.
14 years ago
Anton Khirnov
a839dbb94e
dvenc: print allowed profiles if the video doesn't conform to any of them.
14 years ago
Anton Khirnov
3c6607eb6f
avcodec_encode_{audio,video}: only reallocate output packet when it has non-zero size.
Otherwise realloc would free it, which would result in double free
later.
14 years ago
Paul B Mahol
55abaa58e5
westwood_vqa: fix SND0 chunk handling
Version from vqa header does not dictate which sound chunks may
appear in file.
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
14 years ago
Ronald S. Bultje
98df2e2414
raw: forward avpicture_fill() error code in raw_decode().
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable@libav.org
14 years ago
Diego Biurrun
d724fe665b
dv: Split off DV video decoder into its own file.
14 years ago
Mashiat Sarker Shakkhar
95b192de5d
vc1: Do not read from array if index is invalid.
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable@libav.org
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
14 years ago
Ronald S. Bultje
2ad405548b
targa: convert to bytestream2.
Also remove some write-only variables or write-only variable
assignments, remove internal colorspace conversion to native
endianness (that can be done by swscale much more efficiently),
and some cosmetics.
14 years ago
Ronald S. Bultje
5484170ac7
rv34: set mb_num_left to 0 after finishing a frame
Prevents running error resilience on a previous frame which will write
to the pic->mb_type[] array of the previous image. The array might
already be re-used for a new image in a subsequent thread, thus cause
two threads to write to the same pic->mb_type[] array, causing a race
condition which can crash in rv34_decode_cbp(), called by
rv34_decode_inter_mb_header() (which accesses mb_type[] twice,
assuming values are maintained, which the race condition breaks).
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable@libav.org
14 years ago
Diego Biurrun
72ccfb3cb7
build: ppc: drop stray leftover backslash
14 years ago
Diego Biurrun
e7e19b15c7
build: Only clean the architecture subdirectory we build for.
This allows simplifying the Makefiles; it is no longer necessary to register
arch subdirectory Makefiles, just putting them in place is enough.
14 years ago
Diego Biurrun
ad0e31f134
build: prettyprinting cosmetics
14 years ago
Ronald S. Bultje
b2af057a36
smacker: convert palette and header reading to bytestream2.
14 years ago
Ronald S. Bultje
c3bbd0b53b
alac: convert extradata reading to bytestream2.
14 years ago
Diego Biurrun
62ce9defb8
x86: dsputil: prettyprint gcc inline asm
14 years ago
Diego Biurrun
3b54912113
x86: K&R prettyprinting cosmetics for dsputil_mmx.c
14 years ago
Diego Biurrun
915a2a0a65
x86: conditionally compile H.264 QPEL optimizations
14 years ago
Diego Biurrun
3816642eab
dsputil_mmx: Surround QPEL macros by "do { } while (0);" blocks.
This makes them safe to use in non-fully braced if-blocks and similar.
14 years ago
Ronald S. Bultje
3a3f06b05e
dpcm: convert to bytestream2.
14 years ago
Ronald S. Bultje
f31a68e78c
interplayvideo: convert to bytestream2.
14 years ago
Alexander Strange
cb34867780
h264: fix memleak in error path.
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
14 years ago
Alexander Strange
147ee4cf06
pthread: Immediately release all frames in ff_thread_flush()
Before this, they were only added to the delayed release queue and not
freed until later. This could lead to unnecessary memory use or buffer
exhaustion.
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
14 years ago
Alexander Strange
6ef4063957
h264: Add check for invalid chroma_format_idc
Fixes a crash when FF_DEBUG_PICT_INFO is used.
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
14 years ago
Ronald S. Bultje
ec0ed97b04
utvideo: port header reading to bytestream2.
Fixes crash during slice size reading if slice_end goes negative.
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable@libav.org
14 years ago
Ronald S. Bultje
2ee01fbded
pthread: free progress if buffer allocation failed.
Else we run out of progress variables after a few failed buffer
allocations.
Signed-off-by: Anton Khirnov <anton@khirnov.net>
14 years ago
Ronald S. Bultje
bc1ef85520
lavc/avconv: support changing frame sizes in codecs with frame mt.
Signed-off-by: Anton Khirnov <anton@khirnov.net>
14 years ago