summaryrefslogtreecommitdiff
path: root/libavcodec
Commit message (Collapse)AuthorAge
* aacenc: Fix a segfault in search_for_quantizersNathan Caldwell2011-03-08
| | | | | | | | This reverts the removal of scoefs from AACEncContext. It resulted in scoefs being a NULL pointer when search_for_quantizers() is called. Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* reindent.Ronald S. Bultje2011-03-07
|
* aacenc: remove the data arraysYoung Han Lee2011-03-07
| | | | Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* aac_latm_dec: use aac context and aac m4acThadeu Lima de Souza Cascardo2011-03-07
| | | | | | | | | | | When decoding latm config, use the corresponding aac context and its m4ac instead of using NULL and a local variable. This fixes decoding of audio in MPEG TS from SBTVD (the Brazillian Digital TV Sytem), when there is no extradata. This is the case when using the decoder with gst-ffmpeg and a GStreamer mpegts demuxer. Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@holoscopio.com> Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* ac3enc: add some assertionsJustin Ruggles2011-03-07
|
* ac3enc: use av_assert2() instead of assert() to make debugging easier.Justin Ruggles2011-03-07
|
* cosmetics: rename ff_fmt_convert_init_ppc() to ff_fmt_convert_init_altivec().Justin Ruggles2011-03-07
| | | | It only has Altivec functions and is not compiled if Altivec is disabled.
* Fix compilation on powerpc with --disable-altivec.Carl Eugen Hoyos2011-03-07
|
* h264_mp3toannexb_bsg: don't crash, but warn, if PPS/SPS not found.Sean McGovern2011-03-07
| | | | | | | | | | Should an AVC-1 in MP4 stream not contain SPS or PPS NAL units, this BSF is then unable to allocate an output buffer for the modified stream. Warn that the resulting stream may be unplayable. Fix roundup issue #2386. Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* ac3enc: add num_rematrixing_bands to AC3EncodeContext and use it instead of ↵Justin Ruggles2011-03-04
| | | | | | | | the hardcoded value. Currently it is always 4, but this change will allow it to be adjusted when bandwidth-related features are added such as channel coupling, enhanced channel coupling, and spectral extension.
* ac3: define AC3_MAX_CPL_BANDS and use it in ac3dec.hJustin Ruggles2011-03-04
|
* vp3-mt: fix deadlock when first frame is not a keyframe.Ronald S. Bultje2011-03-02
|
* threads: allow thread count of zeroMans Rullgard2011-03-02
| | | | | | | | | This moves setting the thread count to a minimum of 1 to frame_thread_init(), allowing a value of zero to propagate through to the codec if frame threading is not used. This makes auto-threads work in libx264. Signed-off-by: Mans Rullgard <mans@mansr.com>
* vc1: fix decoding when end sequence is presentBaptiste Coudurier2011-03-02
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* dnxhd: allow encoding with Avid Nitris compatibility.Baptiste Coudurier2011-03-01
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* huffyuv: Add multithreading supportAlexander Strange2011-03-01
| | | | Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* pthreads: Fix bug introduced with thread_safe_callbacksAlexander Strange2011-03-01
| | | | | | | | | For intra codecs, ff_thread_finish_setup() is called before decoding starts automatically. However, get_buffer can only be used before it's called, so adding this requirement broke frame threading for them. Fixed by moving the call until after get_buffer is finished. Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* ARM: VP8: fix build on systems with global symbol prefixMans Rullgard2011-02-27
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* ARM: fix vp8 neon with pic enabledMans Rullgard2011-02-27
| | | | | | | The assembler emits literal pools too far from the load instructions, so we must do it explicitly at a suitable location. Signed-off-by: Mans Rullgard <mans@mansr.com>
* bink: prevent overflows within binkidct by using int-sized intermediate arrayPeter Ross2011-02-25
| | | | Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* Bink version 'b' audio decoderPeter Ross2011-02-25
| | | | Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* binkaudio: simplify frame_len_bits and frame_len calculationPeter Ross2011-02-25
| | | | Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* binkaudio: remove unnecessary loopPeter Ross2011-02-25
| | | | | | | decode_init sets bands[0] == 2, so this loop always sets the band table index (k) to zero. Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* binkaudio: perform band table scaling in decode_initPeter Ross2011-02-25
| | | | Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* bink: use LOCAL_ALIGNED for aligned stack dataMans Rullgard2011-02-25
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* dxva2: define required feature selection macrosKyle2011-02-25
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* 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>
* 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.
* 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>
* targa: prevent integer overflow in bufsize check.Ronald S. Bultje2011-02-21
|
* 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.
* 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.