aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/utils.c
Commit message (Collapse)AuthorAgeFilesLines
...
* Make avcodec_open set codec_id and codec_type if they haven't been set.Reimar Döffinger2009-10-011-0/+5
| | | | | | | 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-231-6/+7
| | | | | | 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-221-1/+4
| | | | | | | | 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-201-2/+3
| | | | | | 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-161-1/+3
| | | | 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-291-3/+3
| | | | 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-031-0/+2
| | | | | | | | 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-311-0/+40
| | | | | | | | 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-221-5/+3
| | | | 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-231-0/+1
| | | | | | | 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-221-1/+1
| | | | | | 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-121-0/+11
| | | | | | 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-101-0/+2
| | | | | | | | 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-071-7/+47
| | | | | | | | | | | 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-011-0/+1
| | | | Originally committed as revision 18301 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Fix indentation after r18047.Reimar Döffinger2009-03-191-7/+7
| | | | 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-191-1/+9
| | | | | | | 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-241-0/+12
| | | | Originally committed as revision 17568 to svn://svn.ffmpeg.org/ffmpeg/trunk
* av_hwaccel_next() by Gwenole Beauchesne.Michael Niedermayer2009-02-241-0/+5
| | | | Originally committed as revision 17567 to svn://svn.ffmpeg.org/ffmpeg/trunk
* av_register_hwaccel() from Gwenole Beauchesne.Michael Niedermayer2009-02-241-0/+11
| | | | 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-231-0/+2
| | | | | | | 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-231-1/+3
| | | | | | 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-091-0/+2
| | | | | | 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-091-0/+4
| | | | | | 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-081-3/+3
| | | | | | 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-081-3/+3
| | | | | | 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-061-0/+2
| | | | | | 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-061-1/+6
| | | | | | 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-061-2/+6
| | | | | | 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-011-1/+1
| | | | | | | 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-191-1/+1
| | | | Originally committed as revision 16684 to svn://svn.ffmpeg.org/ffmpeg/trunk
* export gcd function as av_gcd()Aurelien Jacobs2009-01-171-1/+1
| | | | Originally committed as revision 16653 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Split ff_log_missing_feature into ff_log_missing_featureKenan Gillet2009-01-161-4/+13
| | | | | | | 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-141-1/+1
| | | | | | 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-131-5/+5
| | | | | | They are now always defined to either 0 or 1. Originally committed as revision 16590 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Remove hack to print mp2/mp1 with codec_id of CODEC_ID_MP3.Michael Niedermayer2009-01-131-6/+0
| | | | Originally committed as revision 16583 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Move the AVCodecContext options definition to a dedicated file, reduceStefano Sabatini2009-01-101-422/+0
| | | | | | the utils.c clutter. Originally committed as revision 16514 to svn://svn.ffmpeg.org/ffmpeg/trunk
* s/FFmpeg-devel/ffmpeg-devel/Benoit Fouet2008-12-261-1/+1
| | | | Originally committed as revision 16314 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Change mplayerhq.hu references to ffmpeg.org where appropriate.Diego Biurrun2008-12-251-1/+1
| | | | Originally committed as revision 16310 to svn://svn.ffmpeg.org/ffmpeg/trunk
* ARM: NEON optimised simple_idctMåns Rullgård2008-12-151-0/+1
| | | | Originally committed as revision 16146 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Make register_avcodec() call avcodec_init().Stefano Sabatini2008-12-141-0/+1
| | | | | | | This avoids the possibility to use a registered codec without first initializing libavcodec, which resulted in unexpected behavior. Originally committed as revision 16131 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Use a more explicit "codec" rather than "format" as the parameter ofStefano Sabatini2008-12-141-3/+3
| | | | | | register_avcodec(). Originally committed as revision 16130 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Make av_log_missing_feature an internal function, and change its nameStefano Sabatini2008-12-081-1/+1
| | | | | | to ff_log_missing_feature. Originally committed as revision 16037 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Implement the fields rc_max_available_vbv_use andBaptiste Coudurier2008-11-291-0/+2
| | | | | | | | | | rc_min_vbv_overflow_use in AVCodecContext, and use their values in the ratecontrol code rather than hardcoded ones. See the thread: "[RFC] ratecontrol buffer size magic". Patch by Baptiste Coudurier. Originally committed as revision 15955 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Making it easier to send arbitrary structures as work orders to MT workersRoman Shaposhnik2008-11-121-2/+2
| | | | Originally committed as revision 15804 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add missing #include "libavutil/avstring.h", fixesDiego Biurrun2008-11-051-0/+1
| | | | | | libavcodec/utils.c:1139: warning: implicit declaration of function 'av_strlcat' Originally committed as revision 15777 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add audio channel layout API to libavcodec.Peter Ross2008-11-011-18/+5
| | | | Originally committed as revision 15762 to svn://svn.ffmpeg.org/ffmpeg/trunk
* uses FF_ARRAY_ELEMS() where appropriateAurelien Jacobs2008-10-211-2/+2
| | | | Originally committed as revision 15662 to svn://svn.ffmpeg.org/ffmpeg/trunk
* allows calling avcodec_find_(en|de)coder_by_name with NULL parameterAurelien Jacobs2008-10-081-0/+4
| | | | Originally committed as revision 15586 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Mark list heads static. Patch by Diego PettenòDiego Pettenò2008-10-041-1/+1
| | | | Originally committed as revision 15548 to svn://svn.ffmpeg.org/ffmpeg/trunk