summaryrefslogtreecommitdiffstats
path: root/libavcodec/vmdav.c
Commit message (Collapse)AuthorAgeFilesLines
* vmdvideo: use the AVFrame API properly.Anton Khirnov2013-11-161-21/+27
|
* cosmetics: Group .name and .long_name together in codec/format declarationsDiego Biurrun2013-10-031-2/+2
|
* vmd: decode videos with no LZ buffer size provided - they might not need itKostya Shishkov2013-06-021-3/+10
| | | | | | The buffer is used for an additional pass of frame compression, so videos can be coded without ever using it (and some are coded so indeed, e.g. in Woodruff and the Schnibble of Azimuth game).
* vmd: fix mode 3 decodingKostya Shishkov2013-06-021-12/+18
|
* vmd: drop incomplete chunks and spurious samplesLuca Barbato2013-05-291-2/+6
| | | | | | | | Odd chunk size makes no sense for stereo and incomplete chunks are not supported. Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org
* vmd: refactor the inner decode loopLuca Barbato2013-05-291-78/+82
| | | | | | | | | Simplify a little, assume empty frames are acceptable and do not pointlessly reinit the bytestream2 contexts using possibly wrong size values. Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org
* vmd: return meaningful errorsLuca Barbato2013-05-291-12/+26
| | | | CC: libav-stable@libav.org
* vmd: use the PALETTE_COUNT constant uniformlyLuca Barbato2013-05-291-1/+1
| | | | While at it drop useless parentheses.
* vmdav: convert to bytestream2Alexandra Khirnova2013-03-281-93/+59
| | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* vmdaudio: fix invalid reads when packet size is not a multiple of chunk sizeAnton Khirnov2013-03-081-1/+1
| | | | CC:libav-stable@libav.org
* lavc decoders: work with refcounted frames.Anton Khirnov2013-03-081-20/+18
|
* vmdaudio: decode directly to the user-provided AVFrameJustin Ruggles2013-02-121-10/+7
|
* lavc: fix decode_frame() third parameter semantics for video decodersAnton Khirnov2012-12-041-2/+2
| | | | It's got_frame, not data size
* lavc: add a wrapper for AVCodecContext.get_buffer().Anton Khirnov2012-12-041-2/+3
| | | | It will be useful in the upcoming transition to refcounted AVFrames.
* Include libavutil/channel_layout.h instead of libavutil/audioconvert.hJustin Ruggles2012-11-111-1/+1
| | | | Also reorder some other #include when applicable.
* vmdaudio: set channel layoutJustin Ruggles2012-11-011-0/+4
|
* Replace PIX_FMT_* -> AV_PIX_FMT_*, PixelFormat -> AVPixelFormatAnton Khirnov2012-10-081-1/+1
|
* Don't include common.h from avutil.hMartin Storsjö2012-08-151-0/+1
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* Replace all CODEC_ID_* with AV_CODEC_ID_*Anton Khirnov2012-08-071-2/+2
|
* cosmetics: Align codec declarationsMartin Storsjö2012-04-061-2/+2
| | | | | | | 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>
* Add avcodec_decode_audio4().Justin Ruggles2011-12-021-12/+23
| | | | | | Deprecate avcodec_decode_audio3(). Implement audio support in avcodec_default_get_buffer(). Implement the new audio decoder API in all audio decoders.
* vmd: fix segfaults on corruped streamsLaurent Aimar2011-10-061-24/+80
| | | | Signed-off-by: Janne Grunau <janne-libav@jannau.net>
* vmdaudio: fix decoding of 16-bit audio format.Justin Ruggles2011-09-251-40/+80
| | | | | | 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/
* lavc: use designated initialisers for all codecs.Anton Khirnov2011-07-291-17/+14
| | | | It's more readable and less prone to breakage.
* Replace usages of av_get_bits_per_sample_fmt() with av_get_bytes_per_sample().Justin Ruggles2011-06-201-1/+1
| | | | av_get_bits_per_sample_fmt() is deprecated.
* Remove unused variablesMans Rullgard2011-06-021-2/+0
|
* Replace FFmpeg with Libav in licence headersMans Rullgard2011-03-191-4/+4
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* vmdaudio: output 8-bit audio as AV_SAMPLE_FMT_U8.Justin Ruggles2011-02-231-8/+7
| | | | | | There is no need to expand to 16-bits. Just use memcpy() to copy the raw data. Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* vmdaudio: remove unnecessary fields from VmdAudioContext and use the ↵Justin Ruggles2011-02-231-12/+8
| | | | | | corresponding AVCodecContext fields instead. Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* vmdaudio: add out_bps to VmdAudioContext and use it to replace hard-coded ↵Justin Ruggles2011-02-231-3/+5
| | | | | | sample size. Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* vmdaudio: simplify vmdaudio_decode_frame() by handling block_type first, ↵Justin Ruggles2011-02-231-12/+12
| | | | | | | | then making a single call to vmdaudio_loadsound(). This also adds output buffer size checks for AUDIO and SILENCE block types. Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* cosmetics: reindent after previous commitJustin Ruggles2011-02-231-8/+8
| | | | Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* vmdaudio: move all silence chunk handling to vmdaudio_loadsound().Justin Ruggles2011-02-231-14/+9
| | | | Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* cosmetics: remove debugging cruftJustin Ruggles2011-02-231-3/+0
| | | | Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* cosmetics: reindent after previous commitJustin Ruggles2011-02-231-11/+11
| | | | Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* vmdaudio: simplify buffer pointer and header size handling.Justin Ruggles2011-02-231-9/+10
| | | | Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* vmdaudio: set *data_size to zero when skipping small packets and add a ↵Justin Ruggles2011-02-231-1/+4
| | | | | | warning log message. Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* vmdaudio: validate block typeJustin Ruggles2011-02-231-0/+4
| | | | Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* vmdaudio: use macros and a local variable for block type.Justin Ruggles2011-02-231-3/+10
| | | | Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* vmdaudio: correct the silent chunk count in the first block.Justin Ruggles2011-02-231-5/+1
| | | | | | | This fixes A/V sync with several samples, notably: http://samples.mplayerhq.hu/game-formats/sierra-vmd/swat_*.vmd Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* vmdaudio: output audio samples for standalone silent blocks.Justin Ruggles2011-02-231-1/+1
| | | | Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* vmdaudio: remove duplicated code by merging mono and stereo decoding.Justin Ruggles2011-02-231-22/+1
| | | | Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* vmdaudio: fix raw_block_size calculation.Justin Ruggles2011-02-231-1/+2
| | | | | | The size should depend on the output sample size, not the internal bit depth. Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* Add ff_ prefix to data symbols of encoders, decoders, hwaccel, parsers, bsf.Diego Elio Pettenò2011-01-261-2/+2
| | | | | | | None of these symbols should be accessed directly, so declare them as hidden. Signed-off-by: Mans Rullgard <mans@mansr.com>
* Replace deprecated symbols SAMPLE_FMT_* with AV_SAMPLE_FMT_*, and enumStefano Sabatini2010-11-121-1/+1
| | | | | | SampleFormat with AVSampleFormat. Originally committed as revision 25730 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Remove explicit filename from Doxygen @file commands.Diego Biurrun2010-04-201-1/+1
| | | | | | | | 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
* Define AVMediaType enum, and use it instead of enum CodecType, whichStefano Sabatini2010-03-301-2/+2
| | | | | | is deprecated and will be dropped at the next major bump. Originally committed as revision 22735 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Remove useless #include <unistd.h> from many filesMåns Rullgård2009-07-221-1/+0
| | | | Originally committed as revision 19499 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Remove useless assignment during initialization for some decodersKostya Shishkov2009-04-241-2/+0
| | | | Originally committed as revision 18680 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Implement avcodec_decode_video2(), _audio3() and _subtitle2() which takes anThilo Borgmann2009-04-071-2/+6
| | | | | | | | | | | 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
OpenPOWER on IntegriCloud