Michael Niedermayer
e214306775
mpeg2enc: support and use frame_rate_ext when needed
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
047dcfabc7
afq: sanity assert on remaining_samples
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
b27e2b6e12
afq: update remaining samples variable.
Fixes Ticket1785 (opusenc used this variable)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Justin Ruggles
c9df48909e
libspeexdec: handle NULL return value from speex_packet_to_header()
This will happen when the extradata is not a valid Speex header.
13 years ago
Janne Grunau
1481e19825
mpegvideo: set extended_data in ff_update_duplicate_context()
AVFrame.extended_data has to reset to the AVFrame.data of the current
thread context after copying the frame contents.
Fixes crashes with frame-threading after 2bc0de3858 .
13 years ago
Justin Ruggles
29abb04e73
libspeexdec: If the channel count is not valid, decode as stereo.
When initialized as stereo, libspeex can decode either mono or stereo packets
and will output stereo.
13 years ago
Justin Ruggles
45e5d0c3ac
libspeexdec: properly handle DTX for multiple frames-per-packet
13 years ago
Justin Ruggles
908e22b93a
libspeexdec: move the SpeexHeader from LibSpeexContext to where it is used
13 years ago
Justin Ruggles
892695c851
libspeexdec: simplify setting of frame_size
13 years ago
Justin Ruggles
27c3f9c03e
libspeexdec: set channel_layout
13 years ago
Justin Ruggles
3b061c5e10
libspeexdec: improve setting of Speex mode and sample rate
If there is no extradata and the sample rate given by the user is not valid,
decode as ultra-wideband.
13 years ago
Dmitry Samonenko
ad11681acd
libspeex: Add a private option for enabling VAD
Speex detects non-speech periods and encodes them with just enough bits
to reproduce the background noise, aka ``comfort noise generation''.
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Michael Niedermayer
05e5a24f79
tiffenc: remove unused variable
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
6a697b42d0
parser: fix large overreads
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Clément Bœsch
1e2e2c8095
lavc/h264: move ff_init_cabac_states() from decode_slice() to ff_h264_decode_init().
This fixes one of the potential races spotted by Helgrind.
13 years ago
Michael Niedermayer
695f086939
ffv1dec: print bps for pict debug too
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Justin Ruggles
df824548d0
8svx: Fixing header size, move decoding to per call instead of the first call.
The fate checksum change is due to the header size having been wrong.
Credit&Authorship for the code belongs to Justin Ruggles
Blame for bugs in this merging of the code belong to the Commiter
Commit message by Commiter
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
26d1c7d9c3
8svx: avoid custom clip, avoid +128 for compressed data.
Based on:
commit e371878416
Author: Justin Ruggles <justin.ruggles@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
6eed92a2b7
8svx: fix delta_decode cliping limits
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Nicolas George
72f10d5473
8svx: copy start value in output samples.
Otherwise, the last byte of each stream is left uninitialized.
Signed-off-by: Nicolas George <nicolas.george@normalesup.org>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
d4e82a341e
8svx: remove malloc and memcpy that have become unneeded
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Mans Rullgard
5e826fd65e
ARM: set Tag_ABI_align_preserved in all asm files
All our ARM asm preserves alignment so setting this attribute
in a common location is simpler. This removes numerous warnings
when linking with armcc.
Signed-off-by: Mans Rullgard <mans@mansr.com>
13 years ago
Michael Niedermayer
f5b31daa5e
libopusenc: use more specific and correct name for the channel order
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Alex Converse
b92dfb56d4
tiffenc: Check av_malloc() results.
13 years ago
Alex Converse
9bc055e358
tiffenc: Simplify pixel format setup using AVPixFmtDescriptor.
13 years ago
Dmitry Samonenko
c785b6db73
Libspeex VAD support
Option for Voice Activity Detection is added to speex encoder.
Speex detects non-speech periods and encodes them with just enough bits
to reproduce the background noise, aka ``comfort noise generation''.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Clément Bœsch
81bbce9cf3
Move xGA font data from lavc to lavu.
This needs to be accessible for libavfilter in the next commit.
13 years ago
Justin Ruggles
bfcd4b6a16
adpcmdec: set AVCodec.sample_fmts
13 years ago
Justin Ruggles
1478a3601e
twinvq: use planar sample format
13 years ago
Justin Ruggles
a34be78546
ralf: use planar sample format
13 years ago
Justin Ruggles
1a3459033d
mpc7/8: use planar sample format
13 years ago
Justin Ruggles
3fca0d7210
iac/imc: use planar sample format
13 years ago
Justin Ruggles
64c312aa29
dcadec: use float planar sample format
13 years ago
Justin Ruggles
cbf6ee7823
cook: use planar sample format
13 years ago
Justin Ruggles
9af4eaa8ea
atrac3: use float planar sample format
13 years ago
Justin Ruggles
461ba7e97a
apedec: output in planar sample format
13 years ago
Justin Ruggles
cf8c93ada4
8svx: use planar sample format
13 years ago
Michael Niedermayer
c39916bc2f
jpeglsdec: move pict debug log under correct if()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Nathan Caldwell
6cb8c85409
Opus encoder using libopus
Signed-off-by: Diego Biurrun <diego@biurrun.de>
13 years ago
Diego Biurrun
d25fe4cc65
wmadec: Adjust debug printf argument length modifier
13 years ago
Diego Biurrun
1218777ffd
avcodec: Convert some commented-out printf/av_log instances to av_dlog
13 years ago
Diego Biurrun
9c6cf7f2c9
avcodec: Drop silly and/or broken printf debug output
13 years ago
Diego Biurrun
6f6b0311a3
avcodec: Drop some silly commented-out av_log() invocations
13 years ago
Diego Biurrun
14d3e7ad11
Remove some silly disabled code.
13 years ago
Paul B Mahol
adc5539e7b
smacker: read escape codes in single get_bits() call
Signed-off-by: Paul B Mahol <onemda@gmail.com>
13 years ago
Justin Ruggles
56b6a43056
ac3dec: ensure get_buffer() gets a buffer for the correct number of channels
If there is an error during frame parsing, but AVCodecContext.channels was
changed and AC3DecodeContext.out_channels was set previously, the two may not
match.
Fixes CVE-2012-2802
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable@libav.org
13 years ago
Michael Niedermayer
29619f47c1
fft-test: fix order of operations for calculating the average error
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Paul B Mahol
857797bc14
vima: check packet size before initializing bitstream reader
Signed-off-by: Paul B Mahol <onemda@gmail.com>
13 years ago
Paul B Mahol
06f5edc9be
vima: fix typo in license header
Signed-off-by: Paul B Mahol <onemda@gmail.com>
13 years ago
Paul B Mahol
3fa100244f
flac: use get_bits_longlong()
Signed-off-by: Paul B Mahol <onemda@gmail.com>
13 years ago