summaryrefslogtreecommitdiff
path: root/libavcodec
Commit message (Collapse)AuthorAge
...
* build: Drop OBJS declaration for non-existing PCM_DVD encoderDiego Biurrun2012-10-19
|
* mpeg4videodec: Disable frame multithreading for GMC, its not implemented at allMichael Niedermayer2012-10-19
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* indeo3: do not try to output more lines than we can fitKostya Shishkov2012-10-19
| | | | | | | | Internally chroma planes have multiple of four height while allocated image planes might be smaller if CODEC_FLAG_EMU_EDGE is set. Thus we should not output more lines of chroma than frame can accept. Also the decoder can be safely switched to direct rendering now.
* bmv: get a new frame on every decode_frame(), so we can use direct renderingKostya Shishkov2012-10-19
|
* aac: fix build with hardcoded tablesMans Rullgard2012-10-18
| | | | | | | | | | | aac_tablegen.h includes aac.h for the POW_SF2_ZERO definition, but this also pulls in a raft of other headers, some of which are not safe to use in code built with the host compiler. Moving POW_SF2_ZERO to aac_tablegen_decl.h, where the declaration of the array it relates to already resides, fixes the problems. Signed-off-by: Mans Rullgard <mans@mansr.com>
* Add support for building shared libraries with MSVCMartin Storsjö2012-10-18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This requires the makedef perl script by Derek, from the c89-to-c99 repo. That scripts produces a .def file, listing the symbols to be exported, based on the gcc version scripts and the built object files. To properly load non-function symbols from DLL files, the data symbol declarations need to have the attribute __declspec(dllimport) when building the calling code. (On mingw, the linker can fix this up automatically, which is why it has not been an issue so far. If this attribute is omitted, linking actually succeeds, but reads from the table will not produce the desired results at runtime.) MSVC seems to manage to link DLLs (and run properly) even if this attribute is present while building the library itself (which normally isn't recommended) - other object files in the same library manage to link to the symbol (with a small warning at link time, like "warning LNK4049: locally defined symbol _avpriv_mpa_bitrate_tab imported" - it doesn't seem to be possible to squelch this warning), and the definition of the tables themselves produce a warning that can be squelched ("warning C4273: 'avpriv_mpa_bitrate_tab' : inconsistent dll linkage, see previous definition of 'avpriv_mpa_bitrate_tab'). In this setup, mingw isn't able to link object files that refer to data symbols with __declspec(dllimport) without those symbols actually being linked via a DLL (linking avcodec.dll ends up with errors like "undefined reference to `__imp__avpriv_mpa_freq_tab'"). The dllimport declspec isn't needed at all in mingw, so we simply choose not to declare it for other compilers than MSVC that requires it. (If ICL support later requires it, the condition can be extended later to include both of them.) This also implies that code that is built to link to a certain library as a DLL can't link to the same library as a static library. Therefore, we only allow building either static or shared but not both at the same time. (That is, static libraries as such can be, and actually are, built - this is used for linking the test tools to internal symbols in the libraries - but e.g. libavformat built to link to libavcodec as a DLL cannot link statically to libavcodec.) Also, linking to DLLs is slightly different from linking to shared libraries on other platforms. DLLs use a thing called import libraries, which is basically a stub library allowing the linker to know which symbols exist in the DLL and what name the DLL will have at runtime. In mingw/gcc, the import library is usually named libfoo.dll.a, which goes next to a static library named libfoo.a. This allows gcc to pick the dynamic one, if available, from the normal -lfoo switches, just as it does for libfoo.a vs libfoo.so on Unix. On MSVC however, you need to literally specify the name of the import library instead of the static library. Signed-off-by: Martin Storsjö <martin@martin.st>
* avcodec: Rename avpriv_frame_rate_tab to ff_mpeg12_frame_rate_tabMartin Storsjö2012-10-18
| | | | | | | This table doesn't need to be shared with libavformat any longer. Add mpeg12 to the name to make it less ambiguous, while renaming it. Signed-off-by: Martin Storsjö <martin@martin.st>
* mips64: mark hi/lo registers clobbered in MAC64/MLS64 macrosMans Rullgard2012-10-17
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* libmp3lame: resize the output buffer if neededJustin Ruggles2012-10-17
| | | | | | | | | The LAME API documentation for the required buffer size refers to the size for a single encode call. However, we store multiple frames in the same output buffer but only read 1 frame at a time out of it. As a result, the buffer size given in lame_encode_buffer() is actually smaller than what it should be. Since we do not know how many frames it will end up buffering, it is best to just reallocate if needed.
* avcodec_encode_audio(): fix invalid freeRafaël Carré2012-10-16
| | | | | | | Since 2bc0de385, AVFrame needs to be initialized before calling avcodec_get_frame_defaults(). Signed-off-by: Anton Khirnov <anton@khirnov.net>
* pcm-mpeg: correct bitrate calculationChristian Schmidt2012-10-16
| | | | | | | | Bitrate calculation is off since the bluray spec always specifies an even number of coded channels. This was honored in the decoder, but not for bitrate calculation. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* ffv1: K&R formatting cosmeticsLuca Barbato2012-10-16
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* rangecoder-test: Drop timer output that clutters stderrDiego Biurrun2012-10-15
|
* rangecoder-test: Return in case of an errorDiego Biurrun2012-10-15
|
* wmapro: use planar sample formatJustin Ruggles2012-10-14
|
* wmalossless: output in planar sample formatJustin Ruggles2012-10-14
|
* wmadec: use float planar sample format outputJustin Ruggles2012-10-14
|
* shorten: use planar sample formatJustin Ruggles2012-10-14
|
* lavc: update documentation for AVFrame.extended_dataJustin Ruggles2012-10-14
|
* avutil: Rename ff_set_systematic_pal2() ---> avpriv_set_systematic_pal2()Diego Biurrun2012-10-13
| | | | Functions used across libraries should have avpriv_ and not ff_ prefixes.
* vc1: Use codec ID from AVCodecContext while parsing frame headerMashiat Sarker Shakkhar2012-10-13
| | | | | | | This fixes a segfault with samples that I have (both of them MPEG-TS). Looks like avctx->codec is not being set during parsing. Signed-off-by: Kostya Shishkov <kostya.shishkov@gmail.com>
* dca: allocate a secondary buffer for extra channels when downmixingJustin Ruggles2012-10-13
| | | | | The output AVFrame buffer only has data for the downmix channels. Fixes a segfault when decoding dca with request_channels == 2.
* mpegvideo: remove write-only variableMans Rullgard2012-10-12
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* Use proper return values in case of missing featuresDiego Biurrun2012-10-12
|
* rangecoder-test: Set error message log level to error, instead of debugDiego Biurrun2012-10-12
|
* rangecoder: K&R formatting cosmeticsDiego Biurrun2012-10-12
|
* avcodec: Remove broken MMI optimizationsDiego Biurrun2012-10-12
| | | | The code fails to compile and is broken beyond repair.
* Remove libmpeg2 #define remnantsDiego Biurrun2012-10-12
|
* Move av_reverse table to libavcodecDiego Biurrun2012-10-12
| | | | It is only used in that library.
* avutil: Duplicate ff_log2_tab instead of sharing it across libsDiego Biurrun2012-10-12
| | | | | The table is so small that the space gain is not worth the performance overhead of cross-library access.
* tscc2: Fix an out of array accessMichael Niedermayer2012-10-12
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* vp8: reset loopfilter delta values at keyframes.Sami Pietila2012-10-12
| | | | Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* avutil: add yuva422p and yuva444p formatsLuca Barbato2012-10-12
|
* lavc: do not use av_pix_fmt_descriptors directly.Anton Khirnov2012-10-12
|
* mpegvideo: fix indentationAnton Khirnov2012-10-12
|
* Use the new aes/md5/sha/tree allocation functionsMartin Storsjö2012-10-11
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* svq3: fix pointer type warningMans Rullgard2012-10-11
| | | | | | | | Fixes: libavcodec/svq3.c:661:9: warning: passing argument 2 of 'svq3_decode_block' from incompatible pointer type libavcodec/svq3.c:208:19: note: expected 'DCTELEM *' but argument is of type 'DCTELEM (*)[32]' Signed-off-by: Mans Rullgard <mans@mansr.com>
* svq3: replace unsafe pointer casting with intreadwrite macrosMans Rullgard2012-10-11
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* Move avutil tables only used in libavcodec to libavcodec.Diego Biurrun2012-10-11
|
* options_table: refs option is not snow-onlyDiego Biurrun2012-10-11
|
* mlpdsp: adding missing fileLuca Barbato2012-10-11
|
* dsputil: split out mlp dsp functionLuca Barbato2012-10-11
|
* sh4: add required #include, fix buildMans Rullgard2012-10-11
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* flashsv: propagate inflateReset() errorsJanne Grunau2012-10-10
| | | | Fixes CID717493.
* indeo4/5: remove constant parameter num_bands from wavelet recompositionJanne Grunau2012-10-10
| | | | Fixes bogus uninitialized value compiler and coverity warnings.
* Double motion vector range for HPEL interlaced picture in proper placeMashiat Sarker Shakkhar2012-10-10
| | | | | | | The existing code is not in the right place and it should cover both interlaced frame and field pictures. Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
* vc1dec: Set opposite to the correct value for 1REF field picturesMashiat Sarker Shakkhar2012-10-10
| | | | Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
* vc1dec: Invoke edge emulation regardless of MV precision for 1-MV chromaMashiat Sarker Shakkhar2012-10-10
| | | | | | | | | | This is required due to the way VC-1 handles chroma pull-back which may end up causing negative chroma MV for zero luma MV. Edge emulation needs to be invoked in such cases. This only affects vertical component of chroma motion vector. Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
* vc1dec: Set chroma reference field from REFFIELD for 1REF field picturesMashiat Sarker Shakkhar2012-10-10
| | | | | | | | Interlaced field pictures can have one or two reference pictures, signaled by NUMREF syntax element. For single reference pictures, reference picture is determined by REFFIELD syntax element. Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
* vc1dec: Use correct spelling of "opposite"Mashiat Sarker Shakkhar2012-10-10
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>