aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/utils.c
Commit message (Collapse)AuthorAgeFilesLines
...
* | Remove incorrect return statement from avcodec_thread_free()Mans Rullgard2011-02-111-1/+1
| | | | | | | | | | | | | | | | The function return type is void, so a return statement with an expression is forbidden (and pointless). Signed-off-by: Mans Rullgard <mans@mansr.com> (cherry picked from commit b4668274b944abae61759e796c5cc36ade510f24)
* | Fix build with threading disabledMans Rullgard2011-02-111-0/+2
| | | | | | | | | | | | | | | | | | The avcodec_thread_free() compatibility wrapper calls ff_thread_free(), which is not defined when threading is disabled. Make this call conditional. Signed-off-by: Mans Rullgard <mans@mansr.com> (cherry picked from commit 9a77a92c2b6855781d2a4cfab14c67ae4025760c)
* | check sample_fmt in avcodec_openReimar Döffinger2011-02-111-0/+10
| | | | | | | | | | | | | | check AVCodecContext->sample_fmt against AVCodec->sample_fmts[] to ensure that the encoder supports the specified sample format. Error out if it doesn't. Previously, it would continue and output garbage. Fixes issue 2587. (cherry picked from commit 2cfa2d925808e6cc6fb7a7c133b7cb7622afd37e)
* | Deprecate avcodec_thread_init()Alexander Strange2011-02-111-3/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | As a side effect of the last commit, avcodec_open() now calls it automatically, so there is no longer any need for clients to call it. Instead they should set AVCodecContext.thread_count. avcodec_thread_free() is deprecated, and will be removed from avcodec.h at the next MAJOR libavcodec bump. Rename the functions to ff_thread_init/free, since they are now internal. Wrappers are provided to maintain API compatibility. Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com> (cherry picked from commit c0b102ca03fe92250f1ce620aec3836f529fc1d6)
* | Frame-based multithreading framework using pthreadsAlexander Strange2011-02-111-5/+54
| | | | | | | | | | | | See doc/multithreading.txt for details on use in codecs. Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* | Implement guessed_pts in avcodec_decode_video2Nicolas George2011-02-071-1/+42
| | | | | | | | | | Signed-off-by: Nicolas George <nicolas.george@normalesup.org> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Set pkt_pts in avcodec_default_reget_buffer()Nicolas George2011-02-041-0/+2
| | | | | | | | | | | | | | | | This was missed when pkt_pts was first added. Signed-off-by: Nicolas George <nicolas.george@normalesup.org> Signed-off-by: Mans Rullgard <mans@mansr.com> (cherry picked from commit 62ecd3635a1329c49bc3b97ba84ad4d53d847163)
* | Make the ff_lockmgr_cb function pointer static to utils.cDiego Elio Pettenò2011-01-261-1/+1
|/ | | | | Signed-off-by: Mans Rullgard <mans@mansr.com> (cherry picked from commit bb875b75bab4d1713f8251746b01785c19965a9f)
* update av_log_missing_feature() to gitJanne Grunau2011-01-171-1/+1
| | | | Signed-off-by: Janne Grunau <janne-ffmpeg@jannau.net>
* don't complain about codec type/id mismatche for attachment streamsAurelien Jacobs2011-01-121-1/+2
| | | | Originally committed as revision 26316 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Show profile in avcodec_string().Anssi Hannula2011-01-081-0/+8
| | | | | | Patch by Anssi Hannula, anssi d hannula a iki d fi Originally committed as revision 26264 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add pkt_dts to AVFrame, this will in the future allow multithreading decodersMichael Niedermayer2011-01-071-0/+2
| | | | | | to not mess up dts Originally committed as revision 26261 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add AVFrame.pkt_pts that contains the correctly reordered AVPacket.ptsMichael Niedermayer2011-01-071-0/+8
| | | | Originally committed as revision 26260 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add av_get_profile_name() to get profile names.Anssi Hannula2011-01-071-0/+13
| | | | | | Patch by Anssi Hannula, anssi d hannula a iki d fi Originally committed as revision 26259 to svn://svn.ffmpeg.org/ffmpeg/trunk
* free subtitle_header before overwriting it to avoid memleakAurelien Jacobs2010-12-311-0/+5
| | | | Originally committed as revision 26176 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Fix -lowres with ffplay.Anatoly Nenashev2010-12-191-1/+2
| | | | | | Patch by Anatoly Nenashev, anatoly d nenashev a ovsoft d ru Originally committed as revision 26057 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Change the argument of memory allocation functions from unsigned int to size_tMichael Niedermayer2010-12-041-8/+11
| | | | | | with the next major bump in libavcodec. Originally committed as revision 25872 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Use the new libavcore audio channel API.Stefano Sabatini2010-11-211-1/+2
| | | | | | | This also allows to remove a linking dependency of libavfilter on libavcodec. Originally committed as revision 25789 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Replace deprecated symbols SAMPLE_FMT_* with AV_SAMPLE_FMT_*, and enumStefano Sabatini2010-11-121-2/+2
| | | | | | SampleFormat with AVSampleFormat. Originally committed as revision 25730 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Move internal function ff_set_systematic_pal() to libavcore, andStefano Sabatini2010-11-091-1/+2
| | | | | | rename it ff_set_systematic_pal2(). Originally committed as revision 25712 to svn://svn.ffmpeg.org/ffmpeg/trunk
* H.264 decode: support cropping up to 28 pixels in interlaced mode.Reimar Döffinger2010-11-031-1/+1
| | | | | | | | Contrary to progressive, just being able to crop up to 14/15 pixels is not enough to encode all supported resolutions, and the new behaviour is also consistent with e.g. MPEG-2 etc. Originally committed as revision 25669 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Remove usage of deprecated libavcodec/audioconvert.h functions.Stefano Sabatini2010-11-031-1/+2
| | | | Originally committed as revision 25668 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add av_get_bits_per_sample_fmt() to libavcore/samplefmt.h andStefano Sabatini2010-11-021-13/+3
| | | | | | deprecate av_get_bits_per_sample_format(). Originally committed as revision 25654 to svn://svn.ffmpeg.org/ffmpeg/trunk
* add FF_API_SUBTITLE_OLD define to disable the deprecated decode_subtitle APIAurelien Jacobs2010-09-301-1/+1
| | | | Originally committed as revision 25273 to svn://svn.ffmpeg.org/ffmpeg/trunk
* add FF_API_VIDEO_OLD define to disable the deprecated decode_video APIAurelien Jacobs2010-09-301-1/+1
| | | | Originally committed as revision 25272 to svn://svn.ffmpeg.org/ffmpeg/trunk
* add FF_API_AUDIO_OLD define to disable the deprecated decode_audio APIAurelien Jacobs2010-09-301-1/+1
| | | | Originally committed as revision 25270 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Move allocation and init to defaults of the private codec contexts to ↵Michael Niedermayer2010-09-291-0/+6
| | | | | | | | | 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-261-1/+1
| | | | 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-151-3/+8
| | | | | | | | | | 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-131-6/+6
| | | | Originally committed as revision 25114 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Allow the lowres option to affect audio codecs, tooMartin Storsjö2010-09-101-2/+1
| | | | 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-071-2/+2
| | | | | | 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-071-5/+5
| | | | Originally committed as revision 25058 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Remove use of the deprecated function avcodec_check_dimensions(), useStefano Sabatini2010-08-061-4/+4
| | | | | | 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-061-5/+3
| | | | | | 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-311-2/+3
| | | | | | 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-261-118/+5
| | | | | | | | | | | 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-111-8/+8
| | | | Originally committed as revision 24188 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add avsubtitle_free function.Reimar Döffinger2010-07-111-0/+20
| | | | 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-071-0/+7
| | | | | | 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-061-43/+0
| | | | Originally committed as revision 24074 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Fix grammar errors in documentationMåns Rullgård2010-06-301-1/+1
| | | | Originally committed as revision 23904 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Make avcodec_string() use av_get_codec_tag_string().Stefano Sabatini2010-06-021-11/+3
| | | | 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-021-0/+15
| | | | Originally committed as revision 23421 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Cosmetics : Fix typo.Jai Menon2010-05-271-1/+1
| | | | Originally committed as revision 23345 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add CODEC_CAP_EXPERIMENTAL and prefer encoders without it.Janne Grunau2010-05-261-4/+8
| | | | | | 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-181-0/+8
| | | | | | 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-121-0/+1
| | | | | | 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-251-1/+1
| | | | | | 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-201-1/+1
| | | | | | | | 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