Rafaël Carré
37c0dc626d
lavc: always align height by 32 pixel
Interlaced content for most codec requires it.
This patch is a stop-gap pending a serious rework to support
codecs with non 16 pixel macroblocks.
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
14 years ago
Luca Barbato
91b1e6f0c6
raw: add 10bit YUV definitions
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
14 years ago
Diego Biurrun
1ce1578e4e
mpegvideo_enc: separate declarations and statements
libavcodec/mpegvideo_enc.c:1209: warning: ISO C90 forbids mixed declarations and code
14 years ago
Diego Biurrun
bc4d156140
vp3: Reorder some functions to fix VP3 build with Theora disabled.
14 years ago
Diego Biurrun
19277d9335
build: fix standalone compilation of ADX encoder
The encoder depends on the common code, so link against it.
14 years ago
Diego Biurrun
18725fcdc2
build: fix standalone compilation of ADPCM decoders
The generic ADPCM codes depends on the ADPCM data tables.
14 years ago
Michael Niedermayer
f27930cd9a
indeo5: Fix null pointer dereference
Fixes Ticket803
Bug found by: Oana Stratulat
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Aneesh Dogra
1443ea93d9
4xm: Use bytestream2 functions to prevent overreads
Fixes Bug 110.
Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
14 years ago
Aneesh Dogra
fd22616c59
bytestream: add a new set of bytestream functions with overread checking
Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
14 years ago
Nicolas George
b0aaf304a7
Replace PATCHWELCOME by relevant error codes.
This supersedes commit 154c0a8 .
The bug was also reported by Rafaël Carré.
14 years ago
Michael Niedermayer
154c0a8c98
replace ENOTSUP by AVERROR_PATCHWELCOME
This unbreaks compilation
Found by: jb
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Michael Niedermayer
a8469223f6
alac: Check for bitstream overread
Fixes Ticket801
Bug found by: Oana Stratulat
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Michael Niedermayer
65f0f9183b
tm2: Check remaining size before init_get_bits()
Fixes a null pointer dereference.
Fixes 2nd half of Ticket800
Bug found by: Oana Stratulat
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Carl Eugen Hoyos
6168e5812a
Fix off-by-one error when decoding rigth-to-left targa.
14 years ago
Martin Storsjö
b797f73520
vc1dec: Use the right pointer type for the tmp pointer
This fixes warnings about assignment from incompatible
pointer type.
Signed-off-by: Martin Storsjö <martin@martin.st>
14 years ago
Janne Grunau
729ebb2f18
h264: clear trailing bits in partially parsed NAL units
Trailing bits are likely to be non-zero if the NAL unit is truncated.
Clearing the bits make overreads of the bitstream less likely in this
case. Fixes playback of
http://streams.videolan.org/streams/mp4/Mr_MrsSmith-h264_aac.mp4 which
has a forbidden byte sequence of 0x00 0x00 0x00 in it SPS.
14 years ago
Aneesh Dogra
0a6aff6936
vc1: Handle WVC1 interlaced stream
Signed-off-by: Martin Storsjö <martin@martin.st>
14 years ago
Aneesh Dogra
00aad121d8
xl: Fix overreads
Signed-off-by: Martin Storsjö <martin@martin.st>
14 years ago
Michael Niedermayer
1d0ae92a25
eamad: pass & check errors
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Michael Niedermayer
03a9c9932d
eamad: fix excessive memory allocation.
Fixes Ticket792
Bug found by Oana Stratulat
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Asen Lekov
25c2d76b68
qcelpdec: K&R formatting cosmetics
Signed-off-by: Diego Biurrun <diego@biurrun.de>
14 years ago
Diego Biurrun
2fd291846b
qcelpdec: cosmetics: drop some pointless parentheses
14 years ago
Diego Biurrun
30bbd5cbc0
x86: conditionally compile dnxhd encoder optimizations
14 years ago
Michael Niedermayer
f85334f58e
tqi: Fix passing errors from the MB decode. This silences some valgrind warnings.
Fixes second half of Ticket794
Bug found by: Oana Stratulat
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Michael Niedermayer
608708009f
adpcm: Fix crash
Fixes half of Ticket794
Bug found by: Oana Stratulat
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Michael Niedermayer
29179239f5
proresdec: add UPDATE_CACHE, should fix decoding with -Os
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Janne Grunau
358ea75e9e
Revert "h264: skip start code search if the size of the nal unit is known"
This reverts commit 87eebb3454 .
14 years ago
Janne Grunau
87eebb3454
h264: skip start code search if the size of the nal unit is known
Start code emulation prevention is only required in Annex B bytestream
packed NAL units. For other coding formats the size is already known.
Looking for a start code prefix can result in false positives like in
http://streams.videolan.org/streams/mp4/Mr_MrsSmith-h264_aac.mp4
which has a false positive in the SPS.
14 years ago
Paul B. Mahol
2e7905eee8
cljr: fix buf_size sanity check
Signed-off-by: Janne Grunau <janne-libav@jannau.net>
14 years ago
Shitiz Garg
652d81b2c2
cljr: Check if width and height are positive integers
Width and height might get passed as 0 and would cause floating point
exceptions in decode_frame.
Fixes bugzilla #149
Signed-off-by: Janne Grunau <janne-libav@jannau.net>
14 years ago
Mans Rullgard
8400b126ac
avcodec: deprecate AVFrame.age
This was intended as an optimisation for skipped blocks in MPEG2
P-frames and never used elsewhere. Removing this "optimisation"
speeds up MPEG2 decoding by 1-2% (ARM Cortex-A9).
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Michael Niedermayer
7859740c6a
adx_parser: rewrite.
The previous code ended in multiple different infinite
loops. See stl_ten_1_big.sfd as example with and without zzuf
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Michael Niedermayer
6b6b84ae16
adxdec: Fix division by zero
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Michael Niedermayer
bdd62a615a
adxdec: Do not require extradata.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Michael Niedermayer
3bf1d787b5
adx_parser: Fix infinite loop.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Justin Ruggles
bc78ceec2b
4xm: remove unneeded check for remaining unused data.
This is unnecessary complication that only prints a message and does not
affect decoding.
14 years ago
Uoti Urpala
488a5b3fdd
tmv decoder: set correct pix_fmt
Previously the decoder only worked if the user had set avctx->pix_fmt
manually. For some reason the libavformat tmv demuxer sets this, so
the problem was not visible in avplay etc.
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
14 years ago
Carl Eugen Hoyos
1af0ace3a4
Fix channel order for some less common TrueHD layouts.
Reported and tested by TDiTP_
Fixes ticket #779 .
14 years ago
Hendrik Leppkes
b9d8af0327
mlpdec: fix channel order for wide 7.1 truehd layouts
14 years ago
Carl Eugen Hoyos
9a972b5111
Cosmetics: Fix indentation after last commit.
14 years ago
Carl Eugen Hoyos
290e7eb77b
Fix possible endless loop when decoding amr.
Fixes bug 151.
Reviewed-by: Vitor Sessak
14 years ago
Michael Niedermayer
549749c68e
mpeg12: disable checked reader.
overreads in mpeg12 are not possible
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Michael Niedermayer
06192e42fd
mpeg4: disable checked bitstream reader, overreads are not possible.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Michael Niedermayer
8e7776036b
h263: disable slow checked reader, overreads are not possible in
ffmpegs h263 decoder
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Michael Niedermayer
38331d2036
h264: disable checking reader, overreads are not possible
in ffmpegs h264 decoder.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Michael Niedermayer
1a2484fc4e
get_bits: drop the a32 reader.
that way qatar maintains the code for me and i dont need to resolve conflicts.
If someone wants the a32 reader back, only thing you need to do is maintain
it, i would be happy to have it back, iam just not volunteering to maintain
it due to lack of time.
Based on: a1e98f198e by Mans Rullgard.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Michael Niedermayer
53509d20ca
v210dec: Fix warning: ‘val’ may be used uninitialized in this function [-Wuninitialized]
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Michael Niedermayer
c9dc66375b
v210enc: Fix warning: ‘val’ may be used uninitialized in this function [-Wuninitialized]
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Michael Niedermayer
bd35dfeaa0
tta: Fix several warning: initialization from incompatible pointer type [enabled by default]
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Michael Niedermayer
8beeec8821
sunrast: Fix warning: comparison of unsigned expression < 0 is always false [-Wtype-limits]
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago