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

github.com/mpc-hc/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2017-02-02Merge commit 'f637046d3134a331e4b5a7243ac3dfb92735b8a5'Clément Bœsch
* commit 'f637046d3134a331e4b5a7243ac3dfb92735b8a5': libavutil: Always use some GCC style attributes on clang Merged-by: Clément Bœsch <cboesch@gopro.com>
2016-07-21libavutil: Always use some GCC style attributes on clangMartin Storsjö
Clang normally disguises as GCC (defining __GNUC__), and thus get all the normal GCC specific attributes. Clang can also work as a drop-in replacement for MSVC, and in these cases, it doesn't define __GNUC__, but defines _MSC_VER instead. Even in these setups, it still supports the GCC style attributes, thus use them, especially where there isn't any MSVC specific version, or where the MSVC specific version doesn't work on clang (for DECLARE_ASM_CONST). Signed-off-by: Martin Storsjö <martin@martin.st>
2015-10-05avutil/attributes: add av_warn_unused_resultGanesh Ajjanagadde
GCC 3.4 introduced an attribute warn_unused_result to warn when a programmer discards the return value. Applying this judiciously across the codebase can help in fixing a lot of problems. At a high level, functions which return error codes should always be checked. More concretely, consider the functions ff_add_format and the like in avfilter/formats.h. A quick examination shows that a large portion of libavfilter fails to handle the associated errors, usually AVERROR(ENOMEM). The above example was where I observed the utility of this, but it should be useful in many places across the code base. Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2015-09-18avutil/attributes: add AV_GCC_VERSION_AT_MOSTJames Almer
Reviewed-by: Michael Niedermayer <michaelni@gmx.at> Signed-off-by: James Almer <jamrial@gmail.com>
2015-02-17avutil/attributes: Add () to protect the AV_GCC_VERSION_AT_LEAST() argumentsMichael Niedermayer
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2013-11-03Merge commit '5858a67f135a7395c548482c73cf3d39bcdd3022'Michael Niedermayer
* commit '5858a67f135a7395c548482c73cf3d39bcdd3022': attributes: disable flatten on llvm/clang Merged-by: Michael Niedermayer <michaelni@gmx.at>
2013-11-03attributes: disable flatten on llvm/clangVittorio Giovara
2013-09-21lavu/attributes: Don't define av_restrictAlex Smith
This is always defined in config.h. Original patch by Derek Buitenhuis.
2013-09-20Merge commit '33b88f2a4ae54d5397c45e39a5326289ebdc7747'Michael Niedermayer
* commit '33b88f2a4ae54d5397c45e39a5326289ebdc7747': msvc/icl: Use __declspec(noinline) Merged-by: Michael Niedermayer <michaelni@gmx.at>
2013-09-20msvc/icl: Use __declspec(noinline)Alex Smith
Signed-off-by: Martin Storsjö <martin@martin.st>
2013-09-20msvc/icl: Use __declspec(deprecated)Alex Smith
Prior to this on msvc/icl there was no handling of deprecated functions and the deprecated warning was disabled. After enabling there are a number of warnings relating to the CRT and the use of the non-secure versions of several functions. Defining _CRT_SECURE_NO_WARNINGS silences these warnings. Signed-off-by: Martin Storsjö <martin@martin.st>
2013-09-07lavu: provide msvc implementation of attribute_deprecatedKirill Gavrilov
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2012-07-16lavu: disable av_uninit for clangPaul B Mahol
This silence bunch of useless warnings like: libavformat/mpeg.c:393:37: warning: variable 'dvdaudio_substream_type' is uninitialized when used within its own initialization [-Wuninitialized] Signed-off-by: Paul B Mahol <onemda@gmail.com>
2012-07-04Merge remote-tracking branch 'qatar/master'Michael Niedermayer
* qatar/master: cosmetics: Consistently use C-style comments with multiple inclusion guards anm: fix a few Doxygen comments misc typo and wording fixes attributes: add av_noreturn attributes: drop pointless define guards configure: do not disable av_always_inline with --enable-small flvdec: initial stream switch support avplay: fix write on freed memory for rawvideo snow: remove a VLA used for edge emulation x86: lavfi: fix gradfun/yadif build with mmx/sse disabled snow: remove the runs[] VLA. snow: Check mallocs at init flacdec: remove redundant setting of avctx->sample_fmt Conflicts: ffplay.c libavcodec/h264.c libavcodec/snow.c libavcodec/snow.h libavcodec/snowdec.c libavcodec/snowenc.c libavformat/flvdec.c libavutil/attributes.h tools/patcheck Merged-by: Michael Niedermayer <michaelni@gmx.at>
2012-07-03attributes: add av_noreturnReinhard Tartler
Also use it in the declaration of the various exit_program implementations in avtools. inspired by a clang-scan report.
2012-07-03attributes: drop pointless define guardsReinhard Tartler
the av_-prefixed attributes must not be defined outside of this file
2012-07-01Merge remote-tracking branch 'qatar/master'Michael Niedermayer
* qatar/master: dsputilenc_mmx: split assignment of ff_sse16_sse2 to SSE2 section. dnxhdenc: add space between function argument type and comment. x86: fmtconvert: add special asm for float_to_int16_interleave_misc_* attributes: Add a definition of av_always_inline for MSVC cmdutils: Pass the actual chosen encoder to filter_codec_opts os_support: Add fallback definitions for stat flags os_support: Rename the poll fallback function to ff_poll network: Check for struct pollfd os_support: Don't compare a negative number against socket descriptors os_support: Include all the necessary headers for the win32 open function x86: vc1: fix and enable optimised loop filter Conflicts: cmdutils.c cmdutils.h ffmpeg.c ffplay.c libavformat/os_support.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
2012-06-30attributes: Add a definition of av_always_inline for MSVCRonald S. Bultje
Signed-off-by: Martin Storsjö <martin@martin.st>
2012-06-17attributes: move av_restrict fallback from internal to attributesMichael Niedermayer
This should fix --enable-hardcoded-tables Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2012-06-17enable C99-external_inline for iclJ. Bohl
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2012-06-15revert "extern inline" usageMichael Niedermayer
as it breaks ICC: libavcodec/libavcodec.a(snowenc.o): In function `encode_q_branch': /home/fate/x86_64-linux-gnu-icc-2011.4.191/src/libavcodec/snowenc.c:405: undefined reference to `ff_epzs_motion_search' /home/fate/x86_64-linux-gnu-icc-2011.4.191/src/libavcodec/snowenc.c:414: undefined reference to `ff_get_mb_score' Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2012-06-15new attribute "extern inline" (fixing linker error with ff_get_mb_score and ↵J. Bohl
ff_get_mb_score) Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2011-11-11avutil: add av_noreturnMichael Niedermayer
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2011-09-25lavu/attributes: introduce AV_NOWARN_DEPRECATED.Nicolas George
2011-06-24Merge remote-tracking branch 'qatar/master'Michael Niedermayer
* qatar/master: doxygen: Consistently use '@' instead of '\' for Doxygen markup. Use av_printf_format to check the usage of printf style functions Add av_printf_format, for marking printf style format strings and their parameters ARM: enable thumb for Cortex-M* CPUs nsvdec: Propagate error values instead of returning 0 in nsv_read_header(). build: remove SRC_PATH_BARE variable build: move basic rules and variables to main Makefile build: move special targets to end of main Makefile lavdev: improve feedback in case of invalid frame rate/size vfwcap: prefer "framerate_q" over "fps" in vfw_read_header() v4l2: prefer "framerate_q" over "fps" in v4l2_set_parameters() fbdev: prefer "framerate_q" over "fps" in device context bktr: prefer "framerate" over "fps" for grab_read_header() ALSA: implement channel layout for playback. alsa: support unsigned variants of already supported signed formats. alsa: add support for more formats. ARM: allow building in Thumb2 mode Conflicts: common.mak doc/APIchanges libavcodec/vdpau.h libavdevice/alsa-audio-common.c libavdevice/fbdev.c libavdevice/libdc1394.c libavutil/avutil.h Merged-by: Michael Niedermayer <michaelni@gmx.at>
2011-06-23Add av_printf_format, for marking printf style format strings and their ↵Martin Storsjö
parameters Signed-off-by: Martin Storsjö <martin@martin.st>
2011-03-24Merge remote-tracking branch 'newdev/master'Michael Niedermayer
* newdev/master: avio: make udp_set_remote_url/get_local_port internal. asfdec: also subtract preroll when reading simple index object matroskaenc: remove a variable that's unused after bc17bd9. avio: cosmetics - nicer vertical alignment. Remove unnecessary icc version checks Disable 'attribute "foo" ignored' warnings from icc rtsp: Don't use a locale dependent format string Add xd55 codec tag for XDCAM HD422 720p25 CBR files. configure: get libavcodec version from new version.h header lavc: move the version macros to a new installed header. matroskaenc: simplify get_aac_sample_rates by using ff_mpeg4audio_get_config Do not use format string "%0.3f" for RTSP Range field. Add apply_window_int16() to DSPContext with x86-optimized versions and use it in the ac3_fixed encoder. Document usage of import libraries created by dlltool configure: Set the correct lib target for arm/wince dlltool fate: simplify regression-funcs.sh fate: add support for multithread testing Conflicts: libavformat/rtspdec.c libavutil/attributes.h libavutil/internal.h libavutil/mem.h Merged-by: Michael Niedermayer <michaelni@gmx.at>
2011-03-23Remove unnecessary icc version checksMans Rullgard
With unknown attribute warnings disabled, these checks are no longer needed. Removing them improves readability while having no effect on generated code. 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-03-02Use macro __INTEL_COMPILER instead of __ICC.Carl Eugen Hoyos
__ICC is not supported on all platforms, this is an Intel documentation bug that is supposed to be fixed in a future release. (Intel issue 612289)
2011-01-31Rename attribute_used to av_used and move it to attributes.hMans Rullgard
This is consistent with most of the other attribute macros. Signed-off-by: Mans Rullgard <mans@mansr.com> (cherry picked from commit 365e3c7878e4e821d5dec922d2d51f92ce13f926)
2011-01-31Rename attribute_used to av_used and move it to attributes.hMans Rullgard
This is consistent with most of the other attribute macros. Signed-off-by: Mans Rullgard <mans@mansr.com>
2010-11-10Intel C compiler 12.0 does not suport these attributes: may_alias, ↵Carl Eugen Hoyos
force_align_arg_pointer and alloc_size. Originally committed as revision 25716 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-05-13av_alias is an attribute and belongs to attributes.hMichael Niedermayer
also attributes.h is public and external api and can thus not depend on configure tested compiler support thus this part is removed. A different solution must be found if this breaks for some compiler which i hope it does not. Originally committed as revision 23115 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-04-20Remove explicit filename from Doxygen @file commands.Diego Biurrun
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
2010-04-02av_builtin_constant_p()Michael Niedermayer
Originally committed as revision 22770 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-03-09Move gcc attribute macros to new header libavutil/attributes.hMåns Rullgård
Originally committed as revision 22346 to svn://svn.ffmpeg.org/ffmpeg/trunk