summaryrefslogtreecommitdiff
path: root/libavcodec/utils.c
Commit message (Collapse)AuthorAge
...
* Move allocation and init to defaults of the private codec contexts to ↵Michael Niedermayer2010-09-29
| | | | | | | | | avcodec_get_context_defaults3(). That way the user app can set codec specific parameters in the private context before opening it. Originally committed as revision 25257 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Move AVOptions from libavcodec to libavutilMichael Niedermayer2010-09-26
| | | | Originally committed as revision 25210 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Check avctx width/height more thoroughly (e.g. all values 0 except width wouldReimar Döffinger2010-09-15
| | | | | | | | | | have been accepted before). Also do not fail if they are invalid but instead override them to 0. This allows decoding e.g. MPEG video when only the container values are corrupted. For encoding a value of 0,0 of course makes no sense, but was allowed through before and will be caught by an extra check in the encode function. Originally committed as revision 25124 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Test lowres before codec init.Carl Eugen Hoyos2010-09-13
| | | | Originally committed as revision 25114 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Allow the lowres option to affect audio codecs, tooMartin Storsjö2010-09-10
| | | | Originally committed as revision 25094 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Remove use of deprecated functions av_image_fill_pointers/linesizes inStefano Sabatini2010-09-07
| | | | | | libavcodec/utils.c, fix warnings. Originally committed as revision 25069 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Use new imgutils.h API names, fix deprecation warnings.Stefano Sabatini2010-09-07
| | | | Originally committed as revision 25058 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Remove use of the deprecated function avcodec_check_dimensions(), useStefano Sabatini2010-08-06
| | | | | | av_check_image_size() instead. Originally committed as revision 24711 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Deprecate avcodec_check_dimensions() in favor of the new functionStefano Sabatini2010-08-06
| | | | | | av_check_image_size() declared in libavcore/imgutils.h. Originally committed as revision 24709 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Use av_fill_image_pointers/linesizes in place of ff_fill_pointer/linesize,Stefano Sabatini2010-07-31
| | | | | | and drop the the ff_ variants at the next major bump. Originally committed as revision 24620 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Deprecate av_parse_video_frame_size() and av_parse_video_frame_rate()Stefano Sabatini2010-07-26
| | | | | | | | | | | in favor of the newly added corresponding functions av_parse_video_size() and av_parse_video_rate() defined in libavcore/parseutils.h. This change also adds a linking-time dependency of libavcodec and of libavfilter on libavcore. Originally committed as revision 24518 to svn://svn.ffmpeg.org/ffmpeg/trunk
* 100l, change avsubtitle_free to the actually tested and working version.Reimar Döffinger2010-07-11
| | | | Originally committed as revision 24188 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add avsubtitle_free function.Reimar Döffinger2010-07-11
| | | | Originally committed as revision 24185 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add new decoder property max_lowres and do not init decoder if requested ↵Carl Eugen Hoyos2010-07-07
| | | | | | value is higher. Originally committed as revision 24098 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Move av_tempfile() to libxvidff.c as only the xvid wrapper needs itMåns Rullgård2010-07-06
| | | | Originally committed as revision 24074 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Fix grammar errors in documentationMåns Rullgård2010-06-30
| | | | Originally committed as revision 23904 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Make avcodec_string() use av_get_codec_tag_string().Stefano Sabatini2010-06-02
| | | | Originally committed as revision 23422 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Implement av_get_codec_tag_string() and use it in ffprobe.Stefano Sabatini2010-06-02
| | | | Originally committed as revision 23421 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Cosmetics : Fix typo.Jai Menon2010-05-27
| | | | Originally committed as revision 23345 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add CODEC_CAP_EXPERIMENTAL and prefer encoders without it.Janne Grunau2010-05-26
| | | | | | Patch by Janne Grunau, janne-ffmpeg jannau net Originally committed as revision 23334 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Factorize some code into the new function ff_toupper4().Francesco Lavra2010-05-18
| | | | | | Patch by Francesco Lavra, francescolavra interfree it Originally committed as revision 23158 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Set coded_frame to NULL when closing a codec, since it mightReimar Döffinger2010-05-12
| | | | | | be invalid after the codec is "gone". Originally committed as revision 23101 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Make avcodec_check_dimensions() return AVERROR(EINVAL) rather than -1Stefano Sabatini2010-04-25
| | | | | | in case of invalid picture size. Originally committed as revision 22962 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Remove explicit filename from Doxygen @file commands.Diego Biurrun2010-04-20
| | | | | | | | 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
* Factorize code in get_bit_rate().Stefano Sabatini2010-04-13
| | | | Originally committed as revision 22879 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Fix segfault when encoder initialization fails.Craig Thomasson2010-04-06
| | | | | | Patch by Craig Thomasson $(name) dot $(surname) ripcode com Originally committed as revision 22811 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add function to export EDGE_WIDTH from libavcodec.Bobby Bingham2010-04-01
| | | | Originally committed as revision 22753 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Define AVMediaType enum, and use it instead of enum CodecType, whichStefano Sabatini2010-03-30
| | | | | | is deprecated and will be dropped at the next major bump. Originally committed as revision 22735 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Make av_get_bit_rate() static and remove av_, the function is only usedCarl Eugen Hoyos2010-02-28
| | | | | | inside libavcodec/utils.c. Originally committed as revision 22117 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Include libxvid_internal.h: It contains the prototype for av_tempfile().Carl Eugen Hoyos2010-02-28
| | | | Originally committed as revision 22116 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Fix avcodec_align_dimensions to return values suitably aligned for FLV decodingReimar Döffinger2010-02-27
| | | | | | | with SSE and add a avcodec_align_dimensions2 taht returns the stride alignment requirements independently from doing the width/height padding. Originally committed as revision 22095 to svn://svn.ffmpeg.org/ffmpeg/trunk
* 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