Paul B Mahol
b8b77abe92
cosmetics: realign vertically
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Michael Niedermayer
6462d28dcc
apedec: Fix alignment and fate.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Michael Niedermayer
5cd8afee99
diracdec: Check for negative quants which would cause out of array reads.
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Michael Niedermayer
0065080320
proresdec: Fix read via negative index in a global array.
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Paul B Mahol
5ff88020ac
frwu: Employ more meaningful return values.
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
14 years ago
Reimar Döffinger
f54ae2f8e7
fraps: Use av_fast_padded_malloc() instead of av_realloc()
Ensures alignment and avoids using uninitialized data.
Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
14 years ago
Reimar Döffinger
0880503fbb
mjpegdec: use av_fast_padded_malloc()
also check for allocation failure
Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
14 years ago
Reimar Döffinger
2f4b9021a1
eatqi: use av_fast_padded_malloc()
Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
14 years ago
Reimar Döffinger
00db4d4ad5
asv1: use av_fast_padded_malloc()
Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
14 years ago
Paul B Mahol
ec09230c9a
ffv1dec: PIX_FMT_YUV440P support
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Paul B Mahol
917803babd
ffv1enc: PIX_FMT_YUV440P support
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Janne Grunau
316fc7443b
avcodec: Add av_fast_padded_malloc().
Wrapper around av_fast_malloc() that keeps FF_INPUT_BUFFER_PADDING_SIZE
zero-padded bytes at the end of the used buffer.
Based on a patch by Reimar Döffinger <Reimar.Doeffinger@gmx.de>.
14 years ago
Diego Biurrun
3b637dca72
avcodec.h: Remove some disabled cruft.
14 years ago
Michael Bradshaw
d76864d9ce
Support decoding rgba64 with libopenjpeg.
14 years ago
Michael Bradshaw
ec0d02e441
Support decoding gray8a with libopenjpeg.
14 years ago
Paul B Mahol
8ca8e4a846
zmbv: Employ more meaningful return values.
Also use av_log_ask_for_sample() where it makes sense.
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Diego Biurrun <diego@biurrun.de>
14 years ago
Paul B Mahol
013a677fb6
zmbvenc: Employ more meaningful return values.
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Diego Biurrun <diego@biurrun.de>
14 years ago
Janne Grunau
510ef04a46
vc1: prevent null pointer dereference on broken files
CC: libav-stable@libav.org
14 years ago
Janne Grunau
cb0b284381
zmbv: check av_realloc() return values and avoid memleaks on ENOMEM
14 years ago
Paul B Mahol
d4eeadcbbf
truespeech: align buffer
DSPContext.bswap_buf() requires aligned output
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
14 years ago
Michael Niedermayer
4e2b0c5785
snowdata: Fix project name, this file has not been developed in libav
or by any libav developers.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Michael Niedermayer
72fc4f0cce
gsm.h: Fix project reference
The code in this file is copy and pasted from FFmpegs libavcodec/libgsm.c
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Michael Niedermayer
9096a2760f
simpleidct: fix project name.
"Copyright (c) 2001 Michael Niedermayer" and "part of Libav" is not likely
not only am i not a libav developer there also was no libav in 2001
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Michael Niedermayer
4b4d3d7249
aacenc: fix library references
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Michael Niedermayer
ada28b7f72
h264 golomb: Fix copyright violation.
Copy and paste does not change authorship
See 0da71265 for the original checkin
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Mans Rullgard
034b03e7a0
ac3: Do not read past the end of ff_ac3_band_start_tab.
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Alex Converse <alex.converse@gmail.com>
14 years ago
Janne Grunau
e67e3a3f4a
fate-golomb: extend golomb-test to get_ue_golomb_long()
get_ue_golomb_long() is only tested for values up to 2^15 - 2 since
we can not write larger values.
Silence the test on success and return a non-zero value on error.
Use an heap scratch buffer instead of large stack buffer.
Remove unneeded includes.
14 years ago
Paul B Mahol
0a3a69e8d7
ffv1dec: use correct linesize
Apparently this did not break anything.
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Paul B Mahol
c8eba9f9d5
ffv1dec: PIX_FMT_YUVA444P support
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Paul B Mahol
b0a30ea7c8
ffv1enc: PIX_FMT_YUVA444P support
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Paul B Mahol
ab7da16ea4
ffv1dec: PIX_FMT_YUVA420P support
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Paul B Mahol
7054629f04
ffv1enc: PIX_FMT_YUVA420P support
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Michael Niedermayer
05ebe51e00
mpeg/h264: update thread context even if it is not initialized.
Fixes decoding of Ticket952
Tested-by: Nicolas George <nicolas.george@normalesup.org>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Michael Niedermayer
e4a714f65a
h264: Return the correct number of bytes for mid strea, extradata.
Fixes the hang with Ticket952
Tested-by: Nicolas George <nicolas.george@normalesup.org>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Michael Niedermayer
146ef3f37c
pngdec: fix warning about pointer types
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Diego Biurrun
9e3a2736bd
golomb-test: K&R formatting cosmetics
14 years ago
Diego Biurrun
631f96f959
h264: Split h264-test off into a separate file - golomb-test.c.
The new name is more appropriate as only golomb functions are tested.
14 years ago
Diego Biurrun
4ff46af039
h264-test: cleanup: drop timer invocations, commented out code and other cruft
14 years ago
Diego Biurrun
3856a2aaa6
h264-test: Remove unused DSP and AVCodec contexts and related init calls.
This also avoids a segfault on startup.
14 years ago
Diego Biurrun
b010178e84
adpcm: Add missing stdint.h #include to fix standalone header compilation.
14 years ago
Anton Khirnov
bc90199848
lavc: set AVCodecContext.codec in avcodec_get_context_defaults3().
This way, if the AVCodecContext is allocated for a specific codec, the
caller doesn't need to store this codec separately and then pass it
again to avcodec_open2().
It also allows to set codec private options using av_opt_set_* before
opening the codec.
14 years ago
Anton Khirnov
0e72ad95f9
lavc: make avcodec_close() work properly on unopened codecs.
I.e. free the priv_data and other stuff allocated in
avcodec_alloc_context3() and not segfault.
14 years ago
Anton Khirnov
af08d9aeea
lavc: add avcodec_is_open().
It allows to check whether an AVCodecContext is open in a documented
way. Right now the undocumented way this check is done in lavf/lavc is
by checking whether AVCodecContext.codec is NULL. However it's desirable
to be able to set AVCodecContext.codec before avcodec_open2().
14 years ago
Anton Khirnov
afa4069e3b
lavc/lavf: remove unnecessary symbols from the symbol version script.
14 years ago
Anton Khirnov
f5f49a66a2
lavc: reorder AVCodec fields.
Put all private fields at the end and mark them as such so they can be
easily changed/removed.
This breaks ABI.
14 years ago
Alex Converse
f372ce119b
mp3dec: Fix a heap-buffer-overflow
In some cases, what is left to read from ptr is smaller than EXTRABYTES.
Based on a patch by Thierry Foucu <tfoucu@gmail.com>.
Signed-off-by: Alex Converse <alex.converse@gmail.com>
14 years ago
Justin Ruggles
a3a0691bde
adpcmenc: remove some unneeded casts
14 years ago
Justin Ruggles
149f2058a4
adpcmenc: use int16_t and uint8_t instead of short and unsigned char.
14 years ago
Justin Ruggles
dd88ae831a
adpcmenc: fix adpcm_ms extradata allocation
Add FF_INPUT_BUFFER_PADDING_SIZE.
If allocation fails, also free memory which was allocated previously in
adpcm_encode_init().
14 years ago
Justin Ruggles
877a1d409c
adpcmenc: return proper AVERROR codes instead of -1
14 years ago