Diego Biurrun
8eea8fdceb
flac: Move flac functions shared between libraries to flac common code
...
This fixes a number of flac-related build dependencies.
13 years ago
Mans Rullgard
784514a4a8
flacdec: add planar output support
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
13 years ago
Mans Rullgard
25accf93ad
flacdec: move lpc filter to flacdsp
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
13 years ago
Mans Rullgard
4a8528349f
flacdec: split off channel decorrelation as flacdsp
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
13 years ago
Mans Rullgard
87466f8124
flacdec: factor out code setting avctx->sample_fmt
13 years ago
Mans Rullgard
93e7ef9a24
flacdec: allocate sample buffers with av_malloc
...
The buffers are only allocated once, although it can happen from
any of a few different places, so there is no need to use realloc.
Using av_malloc() ensures they are aligned suitably for SIMD
optimisations.
Signed-off-by: Mans Rullgard <mans@mansr.com>
13 years ago
Mans Rullgard
0da301e105
flacdec: remove curr_bps from FLACContext
...
This value does not need to be persistent across calls.
13 years ago
Mans Rullgard
4719ea7e1e
flacdec: remove redundant setting of avctx->sample_fmt
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
13 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
Justin Ruggles
62d5f9e5ca
flacdec: set channel_layout based on channel count
...
Channel layouts are specified in the FLAC format description at
http://flac.sourceforge.net/format.html
fixes Bug 209
13 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
13 years ago
Diego Biurrun
a8798c7eb9
Drop unnecessary av_uninit attributes from some variable declarations.
...
Recent versions of gcc (4.4+) no longer give false positive warnings.
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
5bd0343bee
flacdec: use av_get_bytes_per_sample() to get sample size
13 years ago
Anton Khirnov
d9cca9fc6a
lavc: use avpriv_ prefix for some flac symbols used in lavf.
...
Specifically, ff_flac_parse_streaminfo, ff_flac_is_extradata_valid and
ff_flac_parse_block_header
13 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.
13 years ago
Anton Khirnov
ec6402b7c5
lavc: use designated initialisers for all codecs.
...
It's more readable and less prone to breakage.
14 years ago
Diego Biurrun
ad4cd0c2a4
doxygen: use Doxygen markup for authors and web links where appropriate
14 years ago
Mans Rullgard
2912e87a6c
Replace FFmpeg with Libav in licence headers
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Diego Elio Pettenò
e7e2df27f8
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>
(cherry picked from commit d36beb3f69
)
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
Michael Chinen
a4151444bd
Define FLAC_MIN_FRAME_SIZE and use it in the FLAC decoder.
...
Patch by Michael Chinen [mchinen at gmail]
Originally committed as revision 25916 to svn://svn.ffmpeg.org/ffmpeg/trunk
14 years ago
Michael Chinen
60a684939a
Simplify the FLAC decoder now that it no longer has to parse arbitrary raw FLAC
...
data thanks to the recently added FLAC parser.
Patch by Michael Chinen [mchinen at gmail]
Originally committed as revision 25915 to svn://svn.ffmpeg.org/ffmpeg/trunk
14 years ago
Michael Chinen
3c795698d0
Add log_level_offset parameter to ff_flac_decode_frame_header(). It will be used
...
to optionally silence the error messages.
Patch by Michael Chinen [mchinen at gmail]
Originally committed as revision 25912 to svn://svn.ffmpeg.org/ffmpeg/trunk
14 years ago
Michael Chinen
625daac4bd
Move decode_frame_header() from flacdec.c to flac.c/h to share with the
...
forthcoming FLAC parser.
Patch by Michael Chinen [mchinen at gmail]
Originally committed as revision 25909 to svn://svn.ffmpeg.org/ffmpeg/trunk
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
Justin Ruggles
2e0559b713
Support decoding of FLAC files without a STREAMINFO header.
...
Originally committed as revision 25315 to svn://svn.ffmpeg.org/ffmpeg/trunk
14 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
Justin Ruggles
4c1645a458
Set sample format in flac_decode_init() rather than in
...
ff_flac_parse_streaminfo() since the latter is shared with the raw FLAC
demuxer, which should not be setting the sample format.
Originally committed as revision 20430 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Justin Ruggles
78a9a77eac
add CODEC_CAP_SUBFRAMES to the FLAC decoder capabilities. also add a FIXME
...
comment as a reminder that we can remove both capabilities once a parser is
implemented.
Originally committed as revision 19891 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Måns Rullgård
8313e17976
flacdec: change variable-length array to fixed length
...
pred_order can never exceed 32, so always allocating that amount is safe
and not very wasteful.
Originally committed as revision 19669 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Ronald S. Bultje
ce863d7f36
Rename ff_log_missing_feature() to av_log_missing_feature().
...
Originally committed as revision 19294 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Stefano Sabatini
9106a698e7
Rename bitstream.h to get_bits.h.
...
Originally committed as revision 18494 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Thilo Borgmann
7a00bbad21
Implement avcodec_decode_video2(), _audio3() and _subtitle2() which takes an
...
AVPacket argument rather than a const uint8_t *buf + int buf_size. This allows
passing of packet-specific flags from demuxer to decoder, such as the keyframe
flag, which appears necessary to playback corePNG P-frames.
Patch by Thilo Borgmann thilo.borgmann googlemail com, see also the thread
"Google Summer of Code participation" on the mailinglist.
Originally committed as revision 18351 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Justin Ruggles
d7520f217a
cosmetics: add an @return to documentation for decode_frame_header()
...
Originally committed as revision 18179 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Justin Ruggles
cd98a03024
flacdec: split frame header decoding and validation into a separate
...
function
Originally committed as revision 18175 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Justin Ruggles
e8b0395236
flacdec: cosmetics: white space
...
Originally committed as revision 18167 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Justin Ruggles
fbc4d9c964
flacdec: cosmetics: separate the pure frame header parsing code from
...
other frame header decoding code
Originally committed as revision 18166 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Justin Ruggles
e7e6b06802
flacdec: allow sample rate to change mid-stream, but log a warning
...
message when it does
Originally committed as revision 18162 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Justin Ruggles
1448907465
flacdec: cosmetics: indentation
...
Originally committed as revision 18159 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Justin Ruggles
e2a38af96e
flacdec: change frame bps validation to return an error value if bps
...
changes since this is not currently supported by the decoder.
Originally committed as revision 18157 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Justin Ruggles
f91eaf5deb
flacdec: cosmetics: add some braces to if/else statements
...
Originally committed as revision 18156 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Justin Ruggles
b6fa746e39
flacdec: skip frame when allocated data size is too small
...
Originally committed as revision 18155 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Justin Ruggles
492cc392fa
10l: don't check against current layout until after validating ch_mode.
...
should have been in last commit.
Originally committed as revision 18154 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Justin Ruggles
7660dc6f4f
flacdec: give a more accurate error message when validating channel
...
layout. differentiates between invalid values and unsupported values.
Originally committed as revision 18153 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Justin Ruggles
02b26d2d5c
flacdec: move data size check to flac_decode_frame()
...
Originally committed as revision 18151 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Justin Ruggles
4285c2923c
flacdec: comments and white space.
...
move skipping of frame header to decode_frame()
Originally committed as revision 18150 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Justin Ruggles
5c3e0340d9
flacdec: remove unneeded local variable
...
Originally committed as revision 18148 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Justin Ruggles
3b4d96fa68
flacdec: cosmetics: rename 3 variables
...
Originally committed as revision 18147 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago