aboutsummaryrefslogtreecommitdiff
path: root/libavcodec/shorten.c
AgeCommit message (Collapse)Author
2012-08-07Replace all CODEC_ID_* with AV_CODEC_ID_*Anton Khirnov
2012-04-06cosmetics: Align codec declarationsMartin Storsjö
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>
2012-02-16shorten: Use separate pointers for the allocated memory for decoded samples.Michael Niedermayer
Fixes invalid free() if any of the buffers are not allocated due to either not decoding a header or an error prior to allocating all buffers. Fixes CVE-2012-0858 CC: libav-stable@libav.org Signed-off-by: Michael Niedermayer <michaelni@gmx.at> Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
2011-12-08shorten: avoid abort() on unknown audio typesJohn Brooks
Signed-off-by: Janne Grunau <janne-libav@jannau.net>
2011-12-04shorten: remove dead initializationPaul B. Mahol
Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
2011-12-02Add avcodec_decode_audio4().Justin Ruggles
Deprecate avcodec_decode_audio3(). Implement audio support in avcodec_default_get_buffer(). Implement the new audio decoder API in all audio decoders.
2011-11-11shorten: do not modify samples pointer when interleavingJustin Ruggles
2011-10-20shorten: fix end-of-stream decoding.Justin Ruggles
enable CODEC_CAP_DELAY to flush any remaining frames in the buffer. Stop decoding when the FN_QUIT command is found so that a trailing seek table isn't decoded as a normal frame. decode all channels in the same call to avcodec_decode_audio3() so that decoding will not stop after the first channel of the last frame. Updated FATE reference. More valid audio is now decoded.
2011-10-20shorten: do not use block size to determine whether to read the header.Justin Ruggles
2011-10-20shorten: check output buffer size before decodingJustin Ruggles
2011-10-20shorten: use av_clip_int16() for output sample clippingJustin Ruggles
2011-10-20shorten: use bytestream functions to decode the embedded WAVE headerJustin Ruggles
2011-10-20shorten: add some commentsJustin Ruggles
2011-10-20shorten: merge decoding of FN_DIFF* subblocks into decode_subframe_lpc()Justin Ruggles
2011-10-20cosmetics: remove some needless commented-out stuffJustin Ruggles
2011-10-20shorten: validate block sizeJustin Ruggles
2011-10-20shorten: move declaration of 'ret' to top of shorten_decode_frame()Justin Ruggles
2011-10-20shorten: pass on error value from allocate_buffers() instead of returning -1Justin Ruggles
2011-10-20shorten: check for realloc failureJustin Ruggles
2011-10-20shorten: move decoding of prediction order and applying of global offset toJustin Ruggles
decode_subframe_lpc().
2011-10-20shorten: only calculate output size when returning decoded samples, otherwiseJustin Ruggles
just set data_size to zero.
2011-10-20cosmetics: reindentJustin Ruggles
2011-10-20shorten: separate processing of audio commands from non-audio commandsJustin Ruggles
2011-10-20shorten: skip some fields in the WAV header embedded in the shorten header.Justin Ruggles
fixes incorrect bitrate reporting and potential misreporting of the number of channels.
2011-10-20shorten: split reading of file header into a separate functionsJustin Ruggles
2011-10-13shorten: remove the flush function.Justin Ruggles
The shorten decoder does not support seeking.
2011-10-07shorten: Fix out of bound writes in fix_bitshift()Laurent Aimar
The data pointers s->decoded[*] already take into account s->nwrap. Signed-off-by: Janne Grunau <janne-libav@jannau.net>
2011-10-07shorten: Prevent block size from increasingLaurent Aimar
Signed-off-by: Janne Grunau <janne-libav@jannau.net>
2011-07-29lavc: use designated initialisers for all codecs.Anton Khirnov
It's more readable and less prone to breakage.
2011-07-03Remove statements immediately following unconditional jumpsMans Rullgard
This removes a number of compiler warnings. Signed-off-by: Mans Rullgard <mans@mansr.com>
2011-06-07shorten: Remove stray DEBUG #define and corresponding av_dlog statement.Diego Biurrun
2011-06-02Remove unused variablesMans Rullgard
2011-03-19Replace FFmpeg with Libav in licence headersMans Rullgard
Signed-off-by: Mans Rullgard <mans@mansr.com>
2011-01-29Replace dprintf with av_dlogLuca Barbato
dprintf clashes with POSIX.1-2008
2011-01-26Add ff_ prefix to data symbols of encoders, decoders, hwaccel, parsers, bsf.Diego Elio Pettenò
None of these symbols should be accessed directly, so declare them as hidden. Signed-off-by: Mans Rullgard <mans@mansr.com>
2010-11-12Replace deprecated symbols SAMPLE_FMT_* with AV_SAMPLE_FMT_*, and enumStefano Sabatini
SampleFormat with AVSampleFormat. Originally committed as revision 25730 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-07-10Add av_ prefix to bswap macrosMåns Rullgård
Originally committed as revision 24170 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-06-26shorten: remove VLA and check for buffer overflowMåns Rullgård
Originally committed as revision 23798 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-04-20Remove explicit filename from Doxygen @file commands.Diego Biurrun
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
2010-03-30Define AVMediaType enum, and use it instead of enum CodecType, whichStefano Sabatini
is deprecated and will be dropped at the next major bump. Originally committed as revision 22735 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-13Rename bitstream.h to get_bits.h.Stefano Sabatini
Originally committed as revision 18494 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-07Implement avcodec_decode_video2(), _audio3() and _subtitle2() which takes anThilo Borgmann
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
2009-02-01Use full internal pathname in doxygen @file directives.Diego Biurrun
Otherwise doxygen complains about ambiguous filenames when files exist under the same name in different subdirectories. Originally committed as revision 16912 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-31shorten: trivial simplification of signature checkMåns Rullgård
Originally committed as revision 16908 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-17remove ff_get_fourcc() and use AV_RL32() insteadAurelien Jacobs
Originally committed as revision 16654 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-09-08Bump Major version, this commit is almost just renaming bits_per_sample toLuca Abeni
bits_per_coded_sample but that cannot be done seperately. Patch by Luca Abeni Also reset the minor version and fix the forgotton change to libfaad. Note: The API/ABI should not be considered stable yet, there still may be a change done here or there if some developer has some cleanup ideas and patches! Originally committed as revision 15262 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-31Modify all codecs to report their supported input and output sample format(s).Peter Ross
Originally committed as revision 14482 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-06-12Make AVCodec long_names definition conditional depending on CONFIG_SMALL.Stefano Sabatini
Originally committed as revision 13759 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-04-27Add long names to many AVCodec declarations.Stefano Sabatini
patch by Stefano Sabatini, stefano.sabatini-lala poste it Originally committed as revision 13005 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-03-21Apply 'cold' attribute to init/uninit functions in libavcodecZuxy Meng
Originally committed as revision 12525 to svn://svn.ffmpeg.org/ffmpeg/trunk