Justin Ruggles
3d371f417e
ws_snd: misc cosmetic clean-ups
14 years ago
Justin Ruggles
659c719bc7
ws_snd: remove the 2-bit ADPCM table and just subtract 2 instead.
14 years ago
Justin Ruggles
618b067d21
ws_snd: use memcpy() and memset() instead of loops
14 years ago
Justin Ruggles
6896aa7a38
ws_snd: use samples pointer for loop termination instead of a separate
iterator variable.
14 years ago
Justin Ruggles
6a818cb3ff
ws_snd: make sure number of channels is 1
14 years ago
Justin Ruggles
417364ce1f
ws_snd: add some checks to prevent buffer overread or overwrite.
14 years ago
Justin Ruggles
2322ced8da
ws_snd: decode to AV_SAMPLE_FMT_U8 instead of S16.
8-bit unsigned is the native sample format.
14 years ago
Justin Ruggles
4c5e7b27d5
flacdec: fix buffer size checking in get_metadata_size()
Adds an additional check before reading the next block header and avoids a
potential integer overflow when checking the metadata size against the
remaining buffer size.
14 years ago
Michael Niedermayer
d5a3635b2c
libx264: free x4->sei
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Mike Scheutzow
e2dae1faa8
Fix a buffer overflow in libx264 interface to x264 encoder. Previous code ignored the compressed buffer size passed in. This change returns as many complete NALs as can fit in the buffer, and logs an error message.
Signed-off-by: Mike Scheutzow <mike.scheutzow@alcatel-lucent.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Nicolas George
4ca59d1948
oggdec: add support for Xiph's CELT codec
This patch also introduces CODEC_ID_CELT.
Signed-off-by: Nicolas George <nicolas.george@normalesup.org>
Signed-off-by: Diego Biurrun <diego@biurrun.de>
14 years ago
tipok
cbf914cf16
libaac+ support
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Aurelien Jacobs
023e9960d7
mjpegenc: use named struct initializers
14 years ago
Michael Niedermayer
f85c9b7771
h264dec: fix decoding problems introduced with baad01d8b4.
This affected cases where extradata was not set.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Laurent Aimar
508e47a575
Check for out of bound bands limit in mpc v8 decoder.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Vitor Sessak
02aabd820f
g729dec: avoid unnecessary struct copying
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Vitor Sessak
22dd24fc7d
g729dec: remove useless headers
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Vitor Sessak
58c61492c6
g729dec: fix warnings:
libavcodec/g729postfilter.c: In function ‘long_term_filter’:
libavcodec/g729postfilter.c:114: warning: unused variable ‘n’
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Vitor Sessak
82d99e0b41
g729dec: Fix warnings:
libavcodec/g729dec.c: In function ‘decode_frame’:
libavcodec/g729dec.c:662: warning: passing argument 3 of ‘ff_g729_postfilter’ from incompatible pointer type
libavcodec/g729postfilter.h:96: note: expected ‘int16_t *’ but argument is of type ‘int *’
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Vitor Sessak
1c4712db81
g729dec: Add ff_ prefix to g729_postfilter() and g729_adaptive_gain_control()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Justin Ruggles
88f908fbdc
cosmetics: reindent and pretty-print
14 years ago
Justin Ruggles
8febd6afbc
libgsm: split init and close fuctions for encoder and decoder.
The decoder shouldn't be allocating coded_frame. It's also cleaner to split
them than to check avctx->codec->encode and avctx->codec->decode.
14 years ago
Mans Rullgard
6e4a35ced9
ppc: fix 32-bit PIC build
On 32-bit ppc, the GOT pointer must be loaded manually.
This adds a "get_got" assembler macro to compute the
GOT address. The "movrel" macro is updated to take an
additional parameter containing the GOT address since
no register is reserved for this purpose on ppc32.
These changes have no effect on ppc64 builds.
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Carl Eugen Hoyos
ef8756dab2
Support LZW and ZLIB compressed 4bpp tiff samples.
Fixes ticket #439 and ticket #440 .
14 years ago
Alexander Strasser
baad01d8b4
h264: improve checks before calling ff_h264_decode_extradata
The ff_h264_decode_extradata routine now checks for the buffer size
and pointer internally. This makes it possible to remove the external
checks in ff_h264_decode_init.
In decode_frame there was a size check missing because the buffer
gets tested prior to the invocation of ff_h264_decode_extradata().
Signed-off-by: Alexander Strasser <eclipse7@gmx.net>
14 years ago
Alexander Strasser
715f259bf9
h264: ff_h264_decode_extradata: check buffer args
The buffer size and pointer were not checked prior to testing the first
byte of the buffer. These were sometimes checked before calling, but it is
better to add it inside the function as it takes buf and size arguments.
Signed-off-by: Alexander Strasser <eclipse7@gmx.net>
14 years ago
Jean First
251345a3fe
cosmetics, remove unused and rename variables for consistency
14 years ago
Justin Ruggles
4568c2bf97
vmdaudio: fix decoding of 16-bit audio format.
The initial sample of each block is raw 16-bit PCM, not DPCM.
Fixes decoding of all samples in:
http://streams.videolan.org/samples/game-formats/sierra-vmd/Lighthouse/
14 years ago
Jean First
1a0770f3f7
tiffenc: Enable RGB48LE (16-bit) encoding support
14 years ago
Jean First
72381b2b47
tiffdec: add RGB48 (16bit) support
14 years ago
Laurent Aimar
d1186ff72d
h264: check for out of bounds reads in ff_h264_decode_extradata().
Signed-off-by: Anton Khirnov <anton@khirnov.net>
14 years ago
Michael Niedermayer
035320a52f
dnxhdenc: remove unneeded entries from array.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Michael Niedermayer
b8bad984ef
dnxhdenc: optimize whats left of dnxhd_switch_matrix()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Michael Niedermayer
a2eae0ffd4
amvenc: another quant table fix
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Michael Niedermayer
2aaf32f52f
mpegvideo: support encoding with chroma intra tables that differ from luma.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Michael Niedermayer
a2f27818b5
amvenc: fix quant tables
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Michael Niedermayer
f2f28861da
AMV video encoder.
Authors are Vladimir Voroshilov and Dobrica Pavlinušić based on svn blame/log
For full details of authorship see http://code.google.com/p/amv-codec-tools/
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Laurent Aimar
35cb6854bb
Fix potential pointer arithmetic overflows in rle_unpack() of vmd video decoder.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Laurent Aimar
4749e07498
Fix out of bound reads in rle_unpack() of vmd video decoder.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Laurent Aimar
e07377e736
Check for out of bound reads in vmd_decode() of vmd video decoder.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Laurent Aimar
78cb39d2b2
Fix potential pointer arithmetic overflows in lz_unpack of vmd video decoder.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Laurent Aimar
5127f465bd
Prevent out of bound read in lz_unpack in vmd video decoder.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Laurent Aimar
6a6383bebc
Prevent NULL dereferences when the previous frame is missing in vmd video decoder.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Laurent Aimar
e7aed1280e
Check for invalid update parameters in vmd video decoder.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Laurent Aimar
00cbe9e405
Fix potential overread in vmd audio decoder.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Sascha Sommer
780d45473c
Fix segfault in save_bits:
use put_bits_count to get the buffer fill state instead of
num_saved_bits as num_saved_bits is sometimes reset when
frames are lost
(Ticket 495)
14 years ago
Michael Niedermayer
43e05685f2
g729dec: disable all cpu acceleration, the code does not provide any alignment.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Michael Niedermayer
91c5f81b74
g729dec: set sample format.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Vladimir Voroshilov
5d5b3e527a
Disable MMX
16 years ago
Vladimir Voroshilov
8db3b85616
Fix comments about implemented codecs
17 years ago