Stefano Sabatini
3293b1adca
lavc: set bit_rate in the decoder context, just after the init stage
Also move the get_bit_rate() function, in order to avoid an undefined
symbol reference in avcodec_open2().
14 years ago
Michael Niedermayer
f4f386dd00
wmalossless: Fix infinite loop.
Fixes more of Ticket1000
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Michael Niedermayer
886b40b94a
wmalossless: Switch to new audio API
Partially fixes Ticket1000
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Michael Niedermayer
b240866c5b
wmalossless: remove tab
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Luca Barbato
aac63cef20
examples: unbreak compilation
Update api so it will compile again.
14 years ago
Paul B Mahol
e04ca1d4ce
ttadec: cosmetics: reindent
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
14 years ago
Michael Niedermayer
d9b3097ba2
pamdec: fix mono support.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Aneesh Dogra
566df2eea2
sunrast: use RLE trigger macro inplace of the hard coded value.
Signed-off-by: Anton Khirnov <anton@khirnov.net>
14 years ago
Aneesh Dogra
1a58daed0f
sunrastenc: set keyframe flag for the output packet.
Signed-off-by: Anton Khirnov <anton@khirnov.net>
14 years ago
Reimar Döffinger
3fa6d20533
H264 parser: enable header parsing/frame type detection for is_avc.
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
14 years ago
Anton Khirnov
445a7d48b1
mpegvideo_enc: switch to encode2().
14 years ago
Anton Khirnov
5455384219
mpegvideo_enc: force encoding delay of at least 1 frame when low_delay=0
This allows the following commit to extrapolate better dts for the first
frame. Pts difference between the first two frames is reused as the
difference between pts and dts of the first frame.
14 years ago
Michael Niedermayer
d3f81a6700
pamenc: allocate the correct packetsize for mono.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Michael Niedermayer
5d468edb2e
pamenc: move allocation down.
This way the size that is calculated is known and can be used in a following
commit.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Michael Niedermayer
e98a76d3c2
h264: use av_fast_padded_malloc()
This zeros all the memory once and avoids valgrind warnings.
alternatively the warnings could be suppressed.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Kostya Shishkov
6d702dc072
proresenc: force bitrate not to exceed given limit
Apple ProRes Format Specifications mentions target data size for every frame,
so make sure frame meets it. This also allows encoder to demand much smaller
packet sizes for output.
14 years ago
Ronald S. Bultje
c742ab4e81
vc1parse: call vc1_init_common().
The parser uses VLC tables initialized in vc1_common_init(), therefore
we should call this function on parser init also.
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable@libav.org
14 years ago
Ronald S. Bultje
9d3050d3e9
wma: don't return 0 on invalid packets.
Return 0 means "please return the same data again", i.e. it causes an
infinite loop. Instead, return an error.
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable@libav.org
14 years ago
Ronald S. Bultje
74699ac8c8
mjpegb: don't return 0 at the end of frame decoding.
Return 0 indicates "please return the same data again", i.e. it causes
an infinite loop. Instead, return that we consumed the buffer if we
finished decoding succesfully, or return an error if an error occurred.
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable@libav.org
14 years ago
Mashiat Sarker Shakkhar
a520a9946f
Perform inter-channel decorr. only if both channels are coded
14 years ago
Paul B Mahol
bfe7bace8e
libx264: unbreak libx264rgb
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Ronald S. Bultje
b1af4e9c27
vp8dsp: split long line.
Signed-off-by: Martin Storsjö <martin@martin.st>
14 years ago
Alex Converse
ce7aee9b73
dpcm: ignore extra unpaired bytes in stereo streams.
Fixes: CVE-2011-3951
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
14 years ago
Ronald S. Bultje
3e13005cac
mp3on4: require a minimum framesize.
If bufsize < headersize, init_get_bits() will be called with a negative
number, causing it to fail and any subsequent call to get_bits() will
crash because it reads from a NULL pointer.
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable@libav.org
14 years ago
Ronald S. Bultje
c0994e39d7
mpc7: assign an error level + context to av_log() msg.
14 years ago
Ronald S. Bultje
84c202cc37
huffyuv: error out on bit overrun.
On EOF, get_bits() will continuously return 0, causing an infinite
loop.
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable@libav.org
14 years ago
Martin Storsjö
0733375059
dct-test: Add the missing ff_ prefix to the altivec functions
Signed-off-by: Martin Storsjö <martin@martin.st>
14 years ago
Martin Storsjö
89baf35996
dct-test: Remove a stray declaration of a nonexistent function
Signed-off-by: Martin Storsjö <martin@martin.st>
14 years ago
Paul B Mahol
545e887902
y41penc: switch to encode2()
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Paul B Mahol
48ad7f822d
r210enc: switch to encode2()
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Michael Niedermayer
f9caec0cf9
h264: change deblock_h_chroma_8_mmxext() to prevent valgrind confusion.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Ronald S. Bultje
af468015d9
als: prevent infinite loop in zero_remaining().
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable@libav.org
14 years ago
Ronald S. Bultje
941fc1ea1e
cook: prevent div-by-zero if channels is zero.
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable@libav.org
14 years ago
Carl Eugen Hoyos
44f5b26212
Make CDXL palette opaque.
14 years ago
Anton Khirnov
e9b380a7a5
pamenc: switch to encode2().
14 years ago
Anton Khirnov
3cc77ded4f
svq1enc: switch to encode2().
14 years ago
Anton Khirnov
6a047213ac
dvenc: switch to encode2().
14 years ago
Anton Khirnov
b3566a6a39
dpxenc: switch to encode2().
14 years ago
Anton Khirnov
83c7fe3245
pngenc: switch to encode2().
14 years ago
Anton Khirnov
ab3a410cf0
v210enc: switch to encode2().
14 years ago
Anton Khirnov
f0366fec56
xwdenc: switch to encode2().
14 years ago
Justin Ruggles
f2a4559c77
ttadec: use branchless unsigned-to-signed unfolding
14 years ago
Aneesh Dogra
d7840529b6
avcodec: add a Sun Rasterfile encoder
Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
14 years ago
Aneesh Dogra
1f1fbcfa71
sunrast: Move common defines to a new header file.
Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
14 years ago
Paul B Mahol
b5c626fdf3
cdxl: fix video decoding for some files
Width is padded for ham encodings too.
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
14 years ago
Paul B Mahol
323b9da969
ttadec: remove dead code
The unused code being removed is for encoding only and therefore is not needed
by the decoder.
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
14 years ago
Kostya Shishkov
857d14863d
prores: initialise encoder and decoder parts only when needed
14 years ago
Kostya Shishkov
5d9ad5425f
prores: initialise encoder and decoder parts only when needed
14 years ago
Zongyao Qu
1b84cf41e0
Makefile: fix proresdec dependancies
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Ronald S. Bultje
52e4018be4
flac: fix infinite loops on all-zero input or end-of-stream.
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable@libav.org
14 years ago