Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2018-09-22avcodec/eac3dec: Check that channel_map does not contain more than ↵Michael Niedermayer
EAC3_MAX_CHANNELS Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2017-11-11Merge commit 'abf1c058d1bd0ed1b820ea5e501a4484756f00b0'James Almer
* commit 'abf1c058d1bd0ed1b820ea5e501a4484756f00b0': msvc: Properly specify dllexport for data symbols shared across dll boundaries Merged-by: James Almer <jamrial@gmail.com>
2017-08-31msvc: Properly specify dllexport for data symbols shared across dll boundariesMartin Storsjö
We currently only have exported data symbols within libavcodec, but the concept is easy to extend to other libraries if necessary. The attribute declaration needs to be in a private header though, since we can't use CONFIG_SHARED in public installed headers. Signed-off-by: Martin Storsjö <martin@martin.st>
2015-12-01avcodec/ac3: always use hardcoded tablesGanesh Ajjanagadde
The table in question is a 253 byte one. In fact, it turns out that dynamic generation of the table results in an increased binary size. Code compiled with GCC 5.2.0, x86-64 (size in bytes), before and after patch: old: 62321064 libavcodec/libavcodec.so.57 new: 62320536 libavcodec/libavcodec.so.57 Thus, it always make sense to statically allocate this. Tested with FATE with/without --enable-hardcoded-tables. Reviewed-by: wm4 <nfxjfg@googlemail.com> Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
2014-01-09Merge commit '4b48201d4d9d57a2a1ecf8504bc928aff83cb99a'Michael Niedermayer
* commit '4b48201d4d9d57a2a1ecf8504bc928aff83cb99a': ac3tab.h: #include the correct headers Merged-by: Michael Niedermayer <michaelni@gmx.at>
2014-01-09ac3tab.h: #include the correct headersDiego Biurrun
2012-10-19Merge commit 'c0329748b04e1f175dad8c9c2ebf22a5e2dc5b72'Michael Niedermayer
* commit 'c0329748b04e1f175dad8c9c2ebf22a5e2dc5b72': fate: add a dependency helper macro Add support for building shared libraries with MSVC avcodec: Rename avpriv_frame_rate_tab to ff_mpeg12_frame_rate_tab gxf: Add a local copy of the relevant parts of the frame rate table configure: Split out msvc as a separate target OS aviobuf: Remove a senseless ifdef in avio_seek Conflicts: configure libavcodec/dirac.c libavcodec/mpeg12data.h libavcodec/mpeg12enc.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
2012-10-18Add support for building shared libraries with MSVCMartin Storsjö
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>
2012-02-24Merge remote-tracking branch 'qatar/master'Michael Niedermayer
* qatar/master: (40 commits) swf: check return values for av_get/new_packet(). wavpack: Don't shift minclip/maxclip rtpenc: Expose the max packet size via an avoption rtpenc: Move max_packet_size to a context variable rtpenc: Add an option for not sending RTCP packets lavc: drop encode() support for video. snowenc: switch to encode2(). snowenc: don't abuse input picture for storing information. a64multienc: switch to encode2(). a64multienc: don't write into output buffer when there's no output. libxvid: switch to encode2(). tiffenc: switch to encode2(). tiffenc: properly forward error codes in encode_frame(). lavc: drop libdirac encoder. gifenc: switch to encode2(). libvpxenc: switch to encode2(). flashsvenc: switch to encode2(). Remove libpostproc. lcl: don't overwrite input memory. swscale: take first/lastline over/underflows into account for MMX. ... Conflicts: .gitignore Makefile cmdutils.c configure doc/APIchanges libavcodec/Makefile libavcodec/allcodecs.c libavcodec/libdiracenc.c libavcodec/libxvidff.c libavcodec/qtrleenc.c libavcodec/tiffenc.c libavcodec/utils.c libavformat/mov.c libavformat/movenc.c libpostproc/Makefile libpostproc/postprocess.c libpostproc/postprocess.h libpostproc/postprocess_altivec_template.c libpostproc/postprocess_internal.h libpostproc/postprocess_template.c libswscale/swscale.c libswscale/utils.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
2012-02-23mov: set channel layout for AC-3 streams based on the 'dac3' atom infoJustin Ruggles
fixes Bug 225
2011-05-25Merge remote-tracking branch 'qatar/master'Michael Niedermayer
* qatar/master: (22 commits) configure: enable memalign_hack automatically when needed swscale: unbreak the build on non-x86 systems. swscale: remove if(bitexact) branch from functions. swscale: remove if(canMMX2BeUsed) conditional. swscale: remove swScale_{c,MMX,MMX2} duplication. swscale: use emms_c(). Move emms_c() from libavcodec to libavutil. tiff: set palette in the context when specified in TIFF_PAL tag rtsp: use strtoul to parse rtptime and seq values. pgssubdec: fix incorrect colors. dvdsubdec: fix incorrect colors. ape: Allow demuxing of files with metadata tags. swscale: remove dead macro WRITEBGR24OLD. swscale: remove AMD3DNOW "optimizations". swscale: remove duplicate code in ppc/ subdirectory. swscale: remove duplicated x86/ functions. swscale: force --enable-runtime-cpudetect and remove SWS_CPU_CAPS_*. vsrc_buffer.h: add file doxy vsrc_buffer: tweak error message in init() msmpeg4: reindent. ... Merged-by: Michael Niedermayer <michaelni@gmx.at>
2011-05-24ac3enc: add channel coupling supportJustin Ruggles
Channel coupling is an optional AC-3 feature that increases quality by combining high frequency information from multiple channels into a single channel. The per-channel high frequency information is sent with less accuracy in both the frequency and time domains. This allows more bits to be used for lower frequencies while preserving enough information to reconstruct the high frequencies.
2011-03-30Merge remote-tracking branch 'newdev/master'Michael Niedermayer
* newdev/master: ac3enc: move compute_mantissa_size() to ac3dsp ac3enc: move mant*_cnt and qmant*_ptr out of AC3EncodeContext Remove support for stripping executables ac3enc: NEON optimised float_to_fixed24 ac3: move ff_ac3_bit_alloc_calc_bap to ac3dsp dfa: protect pointer range checks against overflows. Duplicate: mimic: implement multithreading. Merged-by: Michael Niedermayer <michaelni@gmx.at>
2011-03-29ac3: move ff_ac3_bit_alloc_calc_bap to ac3dspMans Rullgard
Signed-off-by: Mans Rullgard <mans@mansr.com>
2011-03-19Replace FFmpeg with Libav in licence headersMans Rullgard
Signed-off-by: Mans Rullgard <mans@mansr.com>
2011-01-26ac3: remove ff_ac3_critical_band_size_tab[] external declarationMans Rullgard
This fixes compilation broken by 6ed3b504f984dc6cefde8d57a57726f9d30e5033 Signed-off-by: Mans Rullgard <mans@mansr.com> (cherry picked from commit 21c900129c268587fa2df774242bfd8af72ff890)
2011-01-25ac3: remove ff_ac3_critical_band_size_tab[] external declarationMans Rullgard
This fixes compilation broken by 6ed3b504f984dc6cefde8d57a57726f9d30e5033 Signed-off-by: Mans Rullgard <mans@mansr.com>
2011-01-09Add stereo rematrixing support to the AC-3 encoders.Justin Ruggles
This improves the audio quality significantly for stereo source with both the fixed-point and floating-point AC-3 encoders. Update acodec-ac3_fixed and seek-ac3_rm test references. Originally committed as revision 26271 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-12-14cosmetics: use some size macros in ac3tab.c/hJustin Ruggles
Originally committed as revision 25969 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-19Add channel layout support to the AC-3 decoder and AC-3 parser.Justin Ruggles
Originally committed as revision 18622 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-17ac3dec: reorder output channels to SMPTE channel orderJustin Ruggles
Originally committed as revision 18542 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-17ac3enc: reorder input channels to AC-3 channel orderJustin Ruggles
Originally committed as revision 18540 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-19cosmetics: Remove pointless period after copyright statement non-sentences.Diego Biurrun
Originally committed as revision 16684 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-08-31Globally rename the header inclusion guard names.Stefano Sabatini
Consistently apply this rule: the guard name is obtained from the filename by stripping the leading "lib", converting '/' and '.' to '_' and uppercasing the resulting name. Guard names in the root directory have to be prefixed by "FFMPEG_". Originally committed as revision 15120 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-08-03cosmetics: make all references to AC-3 capitalized and hyphenatedJustin Ruggles
Originally committed as revision 14523 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-05-09Use full path for #includes from another directory.Diego Biurrun
Originally committed as revision 13098 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-04-25add a ff_ac3_parse_header_full() which calls ff_ac3_parse_header()Bartlomiej Wolowiec
and then reads the channel_map stuff Originally committed as revision 12944 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-12-09cosmetics: rename ac3 tablesJustin Ruggles
Originally committed as revision 11193 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-10-17Add FFMPEG_ prefix to all multiple inclusion guards.Diego Biurrun
Originally committed as revision 10765 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-04-26cosmetics: alignAurelien Jacobs
Originally committed as revision 8817 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-04-26move ac3 tables from a .h to a .cAurelien Jacobs
Originally committed as revision 8816 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-03-18hardcode ff_ac3_frame_sizes tableJustin Ruggles
Originally committed as revision 8435 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-03-11remove redundancy in AC-3 parser by using common tables from ac3tab.hJustin Ruggles
Originally committed as revision 8318 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-03-09Remove common code from AC-3 encoder and utilize ac3.c.Justin Ruggles
Originally committed as revision 8306 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-07Change license headers to say 'FFmpeg' instead of 'this program/this library'Diego Biurrun
and fix GPL/LGPL version mismatches. Originally committed as revision 6577 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-09-10Add official LGPL license headers to the files that were missing them.Diego Biurrun
Originally committed as revision 6219 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-09-03Fix 2 bit allocation bugs. One fix enables using a higher bandwidth code. ↵Justin Ruggles
The other fixes an issue with floorcod=7. Originally committed as revision 6156 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-04-28Revert bad ac3enc commit, the commited code was bigger and slower.Benjamin Larsson
Originally committed as revision 5327 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-04-23Patch to generate the ac3 window, based on code by Justin Ruggles.Benjamin Larsson
Originally committed as revision 5310 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-03-06switch ac3enc to av_crcMichael Niedermayer
Originally committed as revision 5116 to svn://svn.ffmpeg.org/ffmpeg/trunk
2005-12-17COSMETICS: Remove all trailing whitespace.Diego Biurrun
Originally committed as revision 4749 to svn://svn.ffmpeg.org/ffmpeg/trunk
2004-06-26make the tables staticAlex Beregszaszi
Originally committed as revision 3255 to svn://svn.ffmpeg.org/ffmpeg/trunk
2003-03-06per file doxyMichael Niedermayer
Originally committed as revision 1634 to svn://svn.ffmpeg.org/ffmpeg/trunk
2003-02-11* UINTX -> uintx_t INTX -> intx_tZdenek Kabelac
Originally committed as revision 1578 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-10-28preparing integration of new AC3 decoderFabrice Bellard
Originally committed as revision 1089 to svn://svn.ffmpeg.org/ffmpeg/trunk
2001-07-22Initial revisionFabrice Bellard
Originally committed as revision 5 to svn://svn.ffmpeg.org/ffmpeg/trunk