summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
* dca: use EXT_AUDIO_ID field to determine core extensionsAnssi Hannula2011-02-24
| | | | | | | | | This avoids the core substream extensions scan when the EXT_AUDIO_ID field indicates no extensions or only unsupported extensions. The scan is done only if the value of EXT_AUDIO_ID is unknown or indicates a present XCh extension which we can decode. Signed-off-by: Mans Rullgard <mans@mansr.com>
* vmdaudio: output 8-bit audio as AV_SAMPLE_FMT_U8.Justin Ruggles2011-02-23
| | | | | | 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-23
| | | | | | 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-23
| | | | | | sample size. Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* vmdaudio: simplify vmdaudio_decode_frame() by handling block_type first, ↵Justin Ruggles2011-02-23
| | | | | | | | 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-23
| | | | Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* vmdaudio: move all silence chunk handling to vmdaudio_loadsound().Justin Ruggles2011-02-23
| | | | Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* cosmetics: remove debugging cruftJustin Ruggles2011-02-23
| | | | Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* cosmetics: reindent after previous commitJustin Ruggles2011-02-23
| | | | Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* vmdaudio: simplify buffer pointer and header size handling.Justin Ruggles2011-02-23
| | | | 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-23
| | | | | | warning log message. Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* vmdaudio: validate block typeJustin Ruggles2011-02-23
| | | | Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* vmdaudio: use macros and a local variable for block type.Justin Ruggles2011-02-23
| | | | Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* vmdaudio: correct the silent chunk count in the first block.Justin Ruggles2011-02-23
| | | | | | | 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-23
| | | | Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* vmdaudio: remove duplicated code by merging mono and stereo decoding.Justin Ruggles2011-02-23
| | | | Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* vmdaudio: fix raw_block_size calculation.Justin Ruggles2011-02-23
| | | | | | The size should depend on the output sample size, not the internal bit depth. Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* avienc: fix AVI stream index for files with >10 streamslongstone2011-02-23
| | | | | | Fixes issue 2563. Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* avio: rename url_fopen/fclose -> avio_open/close.Anton Khirnov2011-02-23
| | | | Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* libavformat: Remove FF_NETERRNO()Martin Storsjö2011-02-23
| | | | | | | | | | | | | | Map EAGAIN and EINTR from ff_neterrno to the normal AVERROR() error codes. Provide fallback definitions of other errno.h network errors, mapping them to the corresponding winsock errors. This eases catching these error codes in common code, without having to distinguish between FF_NETERRNO(EAGAIN) and AVERROR(EAGAIN). This fixes roundup issue 2614, unbreaking blocking network IO on windows. Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* Add more AVC Intra FOURCCsBenjamin Larsson2011-02-22
| | | | | | | Also change the comments a bit since the FOURCCs aren't specific to Flip4Mac and different ones are used for 720 versus 1080 lines. Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* aacdec: Reduce the size of buf_mdct.Young Han Lee2011-02-21
| | | | | It was doubled in size for the LTP implementation. This brings it back down to its original size.
* Remove old VCSs from version.shAlex Converse2011-02-21
|
* mpegtsenc: use correct PES stream_id for AACTony Strauss2011-02-21
| | | | | | | This adds the AAC codec to the list of audio codecs that results in a PES stream_id of 0xc0 (audio stream). Signed-off-by: Mans Rullgard <mans@mansr.com>
* spdifenc.c: fix compile because of missing include avio_internal.h.Ronald S. Bultje2011-02-21
|
* vp8: ppc: fix invalid reads in altivec epel mcMans Rullgard2011-02-21
| | | | | | | The 4-tap filters should only access one row/column before the reference block. Signed-off-by: Mans Rullgard <mans@mansr.com>
* ppc: fix vc1 inverse transform, unbreak buildMans Rullgard2011-02-21
| | | | | | | | GCC 4.3 and later are more particular about signedness matching in vector operations. The operations under if(rangered) were missing assignments and thus had no effect. Signed-off-by: Mans Rullgard <mans@mansr.com>
* avio: make put_nbyte internal.Anton Khirnov2011-02-21
| | | | Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* avio: avio: avio_ prefixes for put_* functionsAnton Khirnov2011-02-21
| | | | | | | | | | | | In the name of consistency: put_byte -> avio_w8 put_<type> -> avio_w<type> put_buffer -> avio_write put_nbyte will be made private put_tag will be merged with avio_put_str Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* targa: prevent integer overflow in bufsize check.Ronald S. Bultje2011-02-21
|
* avio: make get_partial_buffer internal.Anton Khirnov2011-02-21
| | | | Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* avio: avio_ prefixes for get_* functionsAnton Khirnov2011-02-21
| | | | | | | | | | | | | | In the name of consistency: get_byte -> avio_r8 get_<type> -> avio_r<type> get_buffer -> avio_read get_partial_buffer will be made private later get_strz is left out becase I want to change it later to return something useful. Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* VC1: merge idct8x8, coeff adjustments and put_pixels.Ronald S. Bultje2011-02-21
| | | | | Merging these functions allows merging some loops, which makes the results (particularly after SIMD optimizations) much faster.
* avio: rename av_alloc_put_byte -> avio_alloc_context for consistencyAnton Khirnov2011-02-21
| | | | Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* dsputil: make {add/put/put_signed}_pixels_clamped() non-static.Ronald S. Bultje2011-02-21
|
* VC1: inline vc1_put_block() in vc1_decode_i_blocks().Ronald S. Bultje2011-02-21
| | | | | | Advantage is that it allows us to combine several loops into a single one, and these can eventually be merged into the IDCT itself. Also, it allows us to remove vc1_put_block(), and makes CODEC_FLAG_GRAY faster.
* lavfi: put color source in a dedicated fileStefano Sabatini2011-02-21
| | | | | | Move the color source code from vf_pad.c to vsrc_color.c. Signed-off-by: Mans Rullgard <mans@mansr.com>
* lavfi: add drawutilsStefano Sabatini2011-02-21
| | | | | | | Add drawutils.h and drawutils.c, and use them in the pad filter. The new functions are going to be shared by other filters. Signed-off-by: Mans Rullgard <mans@mansr.com>
* Makefile: include deps from tools directoryMans Rullgard2011-02-20
| | | | | | | | This ensures the tools are rebuilt when necessary. Specifically, lavfi-showfiltfmts was sometimes not rebuilt causing spurious test failures. Signed-off-by: Mans Rullgard <mans@mansr.com>
* amrnb: use correct size when copying lsf_r arrayMans Rullgard2011-02-20
| | | | | | lsf_r is an array of int16_t, not float. Signed-off-by: Mans Rullgard <mans@mansr.com>
* x86: use raw opcode for xgetbv instructionMans Rullgard2011-02-20
| | | | | | | | | | This allows the CPU detection to work with assemblers not supporting the xgetbv mnemonic. These include clang and some BSD versions. All AVX code will be written for yasm, where the main assembler is not involved. Signed-off-by: Mans Rullgard <mans@mansr.com>
* Update version and APIchanges.Ronald S. Bultje2011-02-20
| | | | | | Update libavformat/version.h and doc/APIChanges after renaming init_put_byte() and ByteIOContext to ffio_init_context() (private) and AVIOContext, (public), and deprecating the originals.
* avio: move init_put_byte() to a new private header and rename itAnton Khirnov2011-02-20
| | | | | | | init_put_byte should never be used outside of lavf, since sizeof(AVIOContext) isn't part of public ABI. Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* avio: rename ByteIOContext to AVIOContext.Anton Khirnov2011-02-20
| | | | Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* VC1: don't use vc1_put_block() in vc1_decode_i_blocks_adv().Ronald S. Bultje2011-02-20
| | | | | | | | Advanced profile never uses "range reduction", so vc1_put_block() quite literally just calls put_pixels_clamped() from vc1_decode_i_blocks_adv(). By inlining the function, we can prevent calling IDCT8x8 if CODEC_FLAG_GRAY is set, and we don't have to scale the coeffs in the [0,256] range, but can instead use put_signed_pixels_clamped().
* x86: check for AVX supportMans Rullgard2011-02-20
| | | | | | This adds configure and runtime checks for AVX support on x86 CPUs. Signed-off-by: Mans Rullgard <mans@mansr.com>
* MMS: also discover streams in extended stream properties objectMarton Balint2011-02-19
| | | | | | | Allows playback of nonprimary audio streams in multiple bitrate sources, such as mmsh://wmscr1.dr.dk/e02ch03m Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* dsputil_mmx.c: remove ff_vector128.Ronald S. Bultje2011-02-19
| | | | Remove ff_vector128, it is identical to ff_pb_80.
* Fix invalid reads in VC1 decoderReimar Döffinger2011-02-19
| | | | Patch discussed and taken from https://roundup.ffmpeg.org/issue2584
* Fix VP3 edge emulationDavid Conrad2011-02-19
| | | | | | With negative stride, the start of the edge_emu buffer should be pointing to the last line, not the end of the buffer. With positive stride, pointing to the end of the buffer was completely wrong.