summaryrefslogtreecommitdiff
path: root/libavcodec/utils.c
Commit message (Collapse)AuthorAge
* Free encoder extradata in avcodec_close(). Should fix several small memoryVitor Sessak2010-02-20
| | | | | | | | leaks when encoding (at least for asv, wma and aac). Fix also issue 1577. Originally committed as revision 21923 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Special case VP5/6 chroma alignment on x86 as wellDavid Conrad2010-02-12
| | | | Originally committed as revision 21782 to svn://svn.ffmpeg.org/ffmpeg/trunk
* More av_cold for infrequently called functions.Zuxy Meng2010-01-13
| | | | Originally committed as revision 21179 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add a function to match a 2 element vector of uint16_t and use it in h263 ↵Michael Niedermayer2010-01-09
| | | | | | | | and svq1 instead of custom and bloated code to find an index into a w/h array. Originally committed as revision 21113 to svn://svn.ffmpeg.org/ffmpeg/trunk
* 100l: Fix compilation after r21037.Carl Eugen Hoyos2010-01-06
| | | | Originally committed as revision 21039 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Handle more ADPCM codecs in av_get_bits_per_sample().Daniel Verkamp2010-01-06
| | | | | | | | This removes some special-case code from riff.c. CODEC_ID_ADPCM_G726 is still handled in riff.c as before because it is not guaranteed to be fixed 4 bits per sample. Originally committed as revision 21037 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Prefer "*FUNC_NAME(" over "* FUNC_NAME(" for XXX_configuration() andStefano Sabatini2010-01-03
| | | | | | XXX_license() functions, consistent with the rest of FFmpeg. Originally committed as revision 21005 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Set reordered_opaque in default_reget_buffer() with internal buffers.Michael Niedermayer2009-12-14
| | | | | | From ffmbc0.3, this one appears to be a bugfix. Originally committed as revision 20862 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Factorize av_get_bit_rate (for future use outside of libavcodec).Robert Krüger2009-11-21
| | | | | | Patch by Robert Krüger, krueger signal7 de Originally committed as revision 20569 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Allocate pictures with enough padding for jpeg.Michael Niedermayer2009-11-20
| | | | | | | Ensure that jpeg does not use mbs that could require larger padding. This might have been exploitable. Originally committed as revision 20566 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add functions to return library license and library configuration.Diego Biurrun2009-11-18
| | | | Originally committed as revision 20547 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add a NULL pointer check to avcodec_close() this should prevent a segfaultMichael Niedermayer2009-11-10
| | | | | | when closing without open. Originally committed as revision 20495 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Move ff_reverse in libavcodec to av_reverse in libavutil.Francesco Lavra2009-11-09
| | | | | | Patch by Francesco Lavra, francescolavra interfree it Originally committed as revision 20484 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Print a warning message when avcodec_default_free_buffers finds unreleasedReimar Döffinger2009-10-13
| | | | | | | buffers, this hopefully should help detect codecs that do not release all buffers e.g. in the decode_end function. Originally committed as revision 20230 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add an execute2 function that is more flexible and allows to use parallelReimar Döffinger2009-10-12
| | | | | | | | processing with jobs > threads without wasting too much memory. It also avoids needing a separate int array when the only additional data the jobs needs is a single int running from 0 to count-1. Originally committed as revision 20210 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Make avcodec_open set codec_id and codec_type if they haven't been set.Reimar Döffinger2009-10-01
| | | | | | | This fixes the API breakage introduced by the check that avctx codec id and type match the opened codec and should make (almost?) all applications work again. Originally committed as revision 20125 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Make sure priv_data is freed and codec is set to NULL in case of failure of ↵Michael Niedermayer2009-09-23
| | | | | | avcodec_open(). Originally committed as revision 20002 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Check codec_id and codec_type in avcodec_open(), based on ↵Michael Niedermayer2009-09-22
| | | | | | | | 43_codec_type_mismatch.patch from chrome This is said to be able to lead to a stack based buffer overflow. Originally committed as revision 19973 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add parentheses to logical expression to avoid the warning:Diego Biurrun2009-09-20
| | | | | | libavcodec/utils.c:476: warning: suggest parentheses around && within || Originally committed as revision 19933 to svn://svn.ffmpeg.org/ffmpeg/trunk
* perform sanity check on number of audio channels in avcodec_open()Peter Ross2009-09-16
| | | | Originally committed as revision 19877 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Rename ff_log_missing_feature() to av_log_missing_feature().Ronald S. Bultje2009-06-29
| | | | Originally committed as revision 19294 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Set AV_PKT_FLAG_KEY in avcodec_decode_video.Reimar Döffinger2009-06-03
| | | | | | | | This fixes decoding of MPNG, which currently is incorrectly decoded as CorePNG delta frames. CorePNG can not be correctly decoded via this old API either way. Originally committed as revision 19079 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add a lock manager API to libavcodec.Andreas Öman2009-05-31
| | | | | | | | Allows an application to register a callback that manages mutexes on behalf of FFmpeg. With this callback registered FFmpeg is fully thread safe. Originally committed as revision 19025 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Move ALIGN macro to libavutil/common.h and use it in various placesDavid Conrad2009-05-22
| | | | Originally committed as revision 18898 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Make avcodec_thread_init() set the thread count, even in the case whenStefano Sabatini2009-04-23
| | | | | | | threads support is not enabled. This should avoid the need for thread_count explicit setting in applications. Originally committed as revision 18670 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Update safety check as the maximum pixel size is no longer 4.Michael Niedermayer2009-04-22
| | | | | | New max size is 16bit * 4 samples (RGBA). Originally committed as revision 18655 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add a av_fast_malloc function and replace several uses of av_fast_realloc,Reimar Döffinger2009-04-12
| | | | | | thus avoiding potential memleaks and pointless memcpys. Originally committed as revision 18470 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Make sure mpeg2 has its height rounded up to 32 as that is neededMichael Niedermayer2009-04-10
| | | | | | | | for interlaced stuff. This might have been exploitable when emu edge was not set though note this bug has been introduced just a few days ago. Originally committed as revision 18405 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Implement avcodec_decode_video2(), _audio3() and _subtitle2() which takes anThilo Borgmann2009-04-07
| | | | | | | | | | | AVPacket argument rather than a const uint8_t *buf + int buf_size. This allows passing of packet-specific flags from demuxer to decoder, such as the keyframe flag, which appears necessary to playback corePNG P-frames. Patch by Thilo Borgmann thilo.borgmann googlemail com, see also the thread "Google Summer of Code participation" on the mailinglist. Originally committed as revision 18351 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add 16cif video frame size abbreviation. i.e. -s alias for 1408x1152.Gwenole Beauchesne2009-04-01
| | | | Originally committed as revision 18301 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Fix indentation after r18047.Reimar Döffinger2009-03-19
| | | | Originally committed as revision 18048 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Change linesize alignment method to ensure that linesize[0] == 2*linesize[1]Reimar Döffinger2009-03-19
| | | | | | | for YUV420P and YUV422P always. Fixes MPEG-2 4:2:2 encoding on PPC and ARM, and should fix mxf_d10 regression. Originally committed as revision 18047 to svn://svn.ffmpeg.org/ffmpeg/trunk
* ff_find_hwaccel()Michael Niedermayer2009-02-24
| | | | Originally committed as revision 17568 to svn://svn.ffmpeg.org/ffmpeg/trunk
* av_hwaccel_next() by Gwenole Beauchesne.Michael Niedermayer2009-02-24
| | | | Originally committed as revision 17567 to svn://svn.ffmpeg.org/ffmpeg/trunk
* av_register_hwaccel() from Gwenole Beauchesne.Michael Niedermayer2009-02-24
| | | | Originally committed as revision 17566 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Check return value of ff_fill_pointer in avcodec_default_get_buffer,Reimar Döffinger2009-02-23
| | | | | | | if it returns -1 we do not know how to allocate an AVFrame for that format and must return -1 instead of returning nonsense. Originally committed as revision 17542 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Approved hunks for VAAPI / our new shiny hwaccel APIMichael Niedermayer2009-02-23
| | | | | | by Gwenole Beauchesne gbeauchesne splitted desktop com Originally committed as revision 17539 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Check that there are subtitle rects to encode in avcodec_encode_subtitle()Björn Axelsson2009-02-09
| | | | | | Patch by Björn Axelsson ( gecko A acc D umu D se ) Originally committed as revision 17093 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Check that start_display_time is 0 in avcodec_encode_subtitle()Björn Axelsson2009-02-09
| | | | | | Patch by Björn Axelsson ( gecko A acc D umu D se ) Originally committed as revision 17092 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Remove 'const' qualifier from variable in av_parse_video_frame_size().Baptiste Coudurier2009-02-08
| | | | | | Thus only one warning is printed due to assignment instead of 2 from strtol. Originally committed as revision 17045 to svn://svn.ffmpeg.org/ffmpeg/trunk
* remove useless cast, it does not remove warning, encode prototype must be ↵Baptiste Coudurier2009-02-08
| | | | | | changed Originally committed as revision 17044 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Drop the deprecated function register_avcodec() at the next majorStefano Sabatini2009-02-06
| | | | | | version bump. Originally committed as revision 17028 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Rename register_avcodec() as avcodec_register() and deprecate the oldStefano Sabatini2009-02-06
| | | | | | function name. Originally committed as revision 17026 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Ensure that the palette is set in data[1] for all 8bit formats.Michael Niedermayer2009-02-06
| | | | | | Also document it. Originally committed as revision 17018 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Use full internal pathname in doxygen @file directives.Diego Biurrun2009-02-01
| | | | | | | Otherwise doxygen complains about ambiguous filenames when files exist under the same name in different subdirectories. Originally committed as revision 16912 to svn://svn.ffmpeg.org/ffmpeg/trunk
* cosmetics: Remove pointless period after copyright statement non-sentences.Diego Biurrun2009-01-19
| | | | Originally committed as revision 16684 to svn://svn.ffmpeg.org/ffmpeg/trunk
* export gcd function as av_gcd()Aurelien Jacobs2009-01-17
| | | | Originally committed as revision 16653 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Split ff_log_missing_feature into ff_log_missing_featureKenan Gillet2009-01-16
| | | | | | | and ff_log_ask_for_sample. Patch by Kenan Gillet: gmail_adress(author) Originally committed as revision 16637 to svn://svn.ffmpeg.org/ffmpeg/trunk
* replace all occurrence of ENABLE_ by the corresponding CONFIG_, HAVE_ or ARCH_Aurelien Jacobs2009-01-14
| | | | | | and remove all ENABLE_ definitions. Originally committed as revision 16600 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Change semantic of CONFIG_*, HAVE_* and ARCH_*.Aurelien Jacobs2009-01-13
| | | | | | They are now always defined to either 0 or 1. Originally committed as revision 16590 to svn://svn.ffmpeg.org/ffmpeg/trunk