Diego Biurrun
b2bed9325d
cosmetics: Group .name and .long_name together in codec/format declarations
11 years ago
Diego Biurrun
7950e519bb
Disable deprecation warnings for cases where a replacement is available
11 years ago
Luca Barbato
e9d394f3fa
mlpdec: Do not set invalid context in read_restart_header
...
The faulty values rippled further down the codepath causing a
hard-to-track segfault in the assembly code.
Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable@libav.org
12 years ago
Diego Biurrun
6d97484d72
avcodec: av_log_ask_for_sample() ---> avpriv_request_sample()
12 years ago
Anton Khirnov
759001c534
lavc decoders: work with refcounted frames.
12 years ago
Anton Khirnov
0dff40bfb9
mlpdec: do not try to allocate a zero-sized output buffer.
...
CC:libav-stable@libav.org
12 years ago
Justin Ruggles
dc33fbbfd0
mlp/truehd: decode directly to the user-provided AVFrame
12 years ago
Tim Walker
ed1b01131e
mlp: implement support for AVCodecContext.request_channel_layout.
...
Also wrap usage of AVCodecContext.request_channels in FF_API_REQUEST_CHANNELS directives.
Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
12 years ago
Tim Walker
1fd2deedcc
mlpdec: set the channel layout.
...
Fixes bug 401.
Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
CC:libav-stable@libav.org
12 years ago
Tim Walker
3ffcccb4fb
mlpdec: TrueHD: use Libav channel order.
...
Fixes bug 208.
Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
CC:libav-stable@libav.org
12 years ago
Tim Walker
99ccd2ba10
mlp: store the channel layout for each substream.
...
Also stop storing the channel arrangement in the header info, as it's unused outside of ff_mlp_read_major_sync.
Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
CC:libav-stable@libav.org
12 years ago
Anton Khirnov
594d4d5df3
lavc: add a wrapper for AVCodecContext.get_buffer().
...
It will be useful in the upcoming transition to refcounted AVFrames.
12 years ago
Luca Barbato
2d6caade22
dsputil: split out mlp dsp function
12 years ago
Anton Khirnov
36ef5369ee
Replace all CODEC_ID_* with AV_CODEC_ID_*
12 years ago
Martin Storsjö
00c3b67b8a
cosmetics: Align codec declarations
...
Also break some long lines, remove codec function placeholder comments
and add spaces in sample/pixel format lists.
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Paul B Mahol
ca085e667b
mlpdec: use av_log_ask_for_sample()
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Janne Grunau <janne-libav@jannau.net>
13 years ago
Martin Storsjö
9cf0841ef3
dsputil: Add ff_ prefix to the dsputil*_init* functions
...
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Diego Biurrun
c68fafe0d2
doxygen: eliminate Qt-style doxygen syntax
13 years ago
Justin Ruggles
0eea212943
Add avcodec_decode_audio4().
...
Deprecate avcodec_decode_audio3().
Implement audio support in avcodec_default_get_buffer().
Implement the new audio decoder API in all audio decoders.
13 years ago
Justin Ruggles
82be06bbb3
mlpdec: return meaningful error codes instead of -1
13 years ago
Justin Ruggles
e1b8d88d52
mlpdec: remove unnecessary wrapper function
13 years ago
Justin Ruggles
37b67f1bff
mlpdec: only calculate output size once
13 years ago
Justin Ruggles
caa845851d
mlpdec: validate that the reported channel count matches the actual output
...
channel count
13 years ago
Anton Khirnov
ec6402b7c5
lavc: use designated initialisers for all codecs.
...
It's more readable and less prone to breakage.
13 years ago
Mans Rullgard
2912e87a6c
Replace FFmpeg with Libav in licence headers
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Johan Andersson
21de920472
Update the url to the site website and change ffmpeg-devel to libav-devel
...
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
14 years ago
Diego Elio Pettenò
d36beb3f69
Add ff_ prefix to data symbols of encoders, decoders, hwaccel, parsers, bsf.
...
None of these symbols should be accessed directly, so declare them as
hidden.
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Stefano Sabatini
5d6e4c160a
Replace deprecated symbols SAMPLE_FMT_* with AV_SAMPLE_FMT_*, and enum
...
SampleFormat with AVSampleFormat.
Originally committed as revision 25730 to svn://svn.ffmpeg.org/ffmpeg/trunk
14 years ago
Måns Rullgård
49bd8e4b84
Fix grammar errors in documentation
...
Originally committed as revision 23904 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Nick Brereton
857c30ecba
mlpdec: Comment channel_params field in struct SubStream.
...
Patch by Nick Brereton <nick at nbrereton dot net>
Originally committed as revision 23085 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Nick Brereton
22fb814c2f
mlpdec: Allocate channel decoding parameters for each substream. Some file
...
was encountered with a channel range that overlapped the previous substreams,
and the code assumed no such overlap was possible.
Patch by Nick Brereton <nick at nbrereton dot net>
Originally committed as revision 23084 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Diego Biurrun
ba87f0801d
Remove explicit filename from Doxygen @file commands.
...
Passing an explicit filename to this command is only necessary if the
documentation in the @file block refers to a file different from the
one the block resides in.
Originally committed as revision 22921 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Stefano Sabatini
72415b2adb
Define AVMediaType enum, and use it instead of enum CodecType, which
...
is deprecated and will be dropped at the next major bump.
Originally committed as revision 22735 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Reimar Döffinger
d780511b94
Reduce log level of "Extracting .. channel downmix" to AV_LOG_DEBUG, the
...
message is pointless to ordinary users and is printed once per frame.
Originally committed as revision 21486 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Reimar Döffinger
0b882b4009
Fix crash in MLP decoder due to integer overflow.
...
Probably only DoS, init_get_bits sets buffer to NULL, thus causing a
NULL-dereference directly after.
Originally committed as revision 21426 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Diego Biurrun
547fc46ca7
Remove pointless CONFIG_MLP_DECODER preprocessor check.
...
The file is only ever compiled if the MLP decoder is enabled.
Originally committed as revision 20968 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Ramiro Polla
52ae1e869b
mlp: Indent.
...
Originally committed as revision 20255 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Ramiro Polla
7fd8806924
mlp: Only initialize VLC tables once. This caused a crash when multiple
...
instances of the decoder were started at different times.
Bug reported by Maxim Anisiutkin.
Originally committed as revision 20254 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Ramiro Polla
13bd2044d3
mlp: Simplify adressing of state and coeffs arrays for both filters by making
...
the arrays sequential.
Originally committed as revision 18841 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Ramiro Polla
e282272667
mlpdec: Fix possible writing out of array bounds introduced by being
...
under-paranoid in r18651.
Originally committed as revision 18763 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Ramiro Polla
e8d341ce19
mlpdec: Split sync word error and MLP sync word check.
...
The previous code would print the wrong error message for MLP streams with
TrueHD noise type.
Originally committed as revision 18762 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Ramiro Polla
aff42ee0ff
mlpdec: Fix indentation that got mangled from copy&paste.
...
Originally committed as revision 18761 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Ramiro Polla
bf4f19dc65
mlpdec: Move MLP's filter_channel() to dsputils.
...
Originally committed as revision 18721 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Ramiro Polla
77b12f809b
mlpdec: Simplify filtering code by using only one counter variable.
...
Originally committed as revision 18695 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Ramiro Polla
420df93037
mlpdec: Don't overallocate buffers.
...
Now that max channels and primitive matrices are properly validated, there is
no need to be paranoid that random data will be overwritten.
As a bonus this makes matrix_coeff 16-byte aligned between matrices.
Originally committed as revision 18651 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Ramiro Polla
309616b249
mlpdec: Validate num_primitive_matrices.
...
Originally committed as revision 18650 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Ramiro Polla
868170c4da
mlpdec: Validate max_channel and max_matrix_channel.
...
Originally committed as revision 18649 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Ramiro Polla
46958efe97
mlpdec: Restart header sync must be 0x31ea for MLP.
...
Originally committed as revision 18648 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Ramiro Polla
a256445ec3
mlpdec: Read context variable to local variable to make code cleaner.
...
Originally committed as revision 18615 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Ramiro Polla
f95f6ab91e
mlpdec: {}- and whitespace-related cosmetics.
...
Originally committed as revision 18614 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago