summaryrefslogtreecommitdiff
path: root/libavcodec/utils.c
Commit message (Collapse)AuthorAge
* libx264: support 9- and 10-bit output.Anton Khirnov2011-10-06
|
* avcodec: reject audio packets with NULL data and non-zero sizeJustin Ruggles2011-09-30
| | | | | | | There is no valid reason the user should ever send such packets in the first place, but the documentation for CODEC_CAP_DELAY states that the codec is guaranteed not to get a NULL packet unless that capability is set. That isn't true without preventing this case.
* adpcmenc: Set bits_per_coded_sampleJustin Ruggles2011-09-23
|
* lavc/utils: move avcodec_init() higher in the file.Anton Khirnov2011-09-21
| | | | Fixes build on next major bump.
* lavc: add avcodec_get_type() for mapping codec_id -> type.Anton Khirnov2011-08-16
|
* lavc: fix parentheses placement in avcodec_open2().Baptiste Coudurier2011-08-10
| | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* lavc: make avcodec_init() static on next bump.Anton Khirnov2011-08-10
| | | | | It's called from avcodec_register() anyway, so there's no reason for it to be public.
* vp8/mt: flush worker thread, not application thread context, on seek.Ronald S. Bultje2011-07-10
| | | | This prevents a crash when seeking.
* lavc: introduce avcodec_open2() as a replacement for avcodec_open().Anton Khirnov2011-07-10
| | | | | Adds support for decoder-private options and makes setting other options simpler.
* Do not include mathematics.h in avutil.hMans Rullgard2011-07-03
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* Add new yuv444 pixfmts to avcodec_align_dimensions2Jason Garrett-Glaser2011-06-29
| | | | Fixes draw_edges crashes with high-bit-depth 4:4:4 decoding.
* avutil: Remove unused arbitrary precision integer code.Diego Biurrun2011-06-28
|
* Replace usages of av_get_bits_per_sample_fmt() with av_get_bytes_per_sample().Justin Ruggles2011-06-20
| | | | av_get_bits_per_sample_fmt() is deprecated.
* utils.c: fix crash with threading enabled.Ronald S. Bultje2011-06-06
|
* lavf,lavc: free avoptions in a generic way.Anton Khirnov2011-06-05
| | | | | | It's simpler and less error-prone. Fixes some memleaks along the way.
* Replace avcodec_get_pix_fmt_name() by av_get_pix_fmt_name().Stefano Sabatini2011-06-03
| | | | | This fixes warnings about avcodec_get_pix_fmt_name() being deprecated. Signed-off-by: Diego Biurrun <diego@biurrun.de>
* H264/MPEG frame-level multi-threading.Alexander Strange2011-06-02
| | | | Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* swscale: extend YUV422p support to 10bits depthBaptiste Coudurier2011-05-11
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* Add the notion of pixel size in h264 related functions.Oskar Arvidsson2011-05-10
| | | | | | | | | | In high bit depth the pixels will not be stored in uint8_t like in the normal case, but in uint16_t. The pixel size is thus 1 in normal bit depth and 2 in high bit depth. Preparatory patch for high bit depth h264 decoding support. Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* Add pixel formats for 9- and 10-bit yuv420p.Oskar Arvidsson2011-05-10
| | | | | | | | Also add support for these formats in libswscale. Needed for high bit depth h264 decoding. Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* Simplify av_log_missing_feature().Diego Biurrun2011-04-27
| | | | | Do not print the results of the conditional call to av_log_ask_for_sample() into the same line as the main output, separate the already long text.
* If AVCodecContext.channels is 0 and AVCodecContext.channel_layout isJustin Ruggles2011-04-27
| | | | | | non-zero, set channels based on channel_layout. This allows the user to set only channel_layout and not channels.
* If AVCodecContext.channel_layout and AVCodecContext.channels are bothJustin Ruggles2011-04-27
| | | | non-zero, check to make sure they do not contradict eachother.
* cosmetics: indentationJustin Ruggles2011-04-27
|
* Check AVCodec.supported_samplerates and AVCodec.channel_layouts inJustin Ruggles2011-04-27
| | | | | | | avcodec_open(). If the encoder has a channel_layouts list and AVCodecContext.channel_layout is 0, then only print a warning and let the encoder decide how to handle it.
* lavc: deprecate FF_*_TYPE macros in favor of AV_PICTURE_TYPE_* enumsStefano Sabatini2011-04-26
| | | | | | | | | | | | Also deprecate av_get_pict_type_char() in favor of av_get_picture_type_char(). The new enum and av_get_picture_type_char() are defined in libavutil. This allows the use in libavfilter without the need to link against libavcodec. Signed-off-by: Stefano Sabatini <stefano.sabatini-lala@poste.it> Signed-off-by: Anton Khirnov <anton@khirnov.net>
* Make av_log_ask_for_sample() accept a variable number of arguments.Diego Biurrun2011-04-22
|
* lavc: provide deprecated avcodec_thread_init until next major versionAnton Khirnov2011-04-21
| | | | It was deprecated only recently.
* In avcodec_open(), set return code to an error value only when an error occursJustin Ruggles2011-04-19
| | | | | | | | | instead of unconditionally at the start of the function. This fixes a bug where a successful call to ff_thread_init() masks errors that occur after that point in the function. It also makes future bugs like this less likely since the error code is now set near to the point in the code where the error is found.
* lavc: remove misc disabled cruft.Anton Khirnov2011-04-19
|
* lavc: remove the FF_API_SUBTITLE_OLD cruft.Anton Khirnov2011-04-19
|
* lavc: remove the FF_API_VIDEO_OLD cruft.Anton Khirnov2011-04-19
|
* lavc: remove the FF_API_AUDIO_OLD cruft.Anton Khirnov2011-04-19
|
* Replace mplayerhq.hu URLs by libav.org.Diego Biurrun2011-04-18
|
* Replace more FFmpeg references by Libav.Diego Biurrun2011-04-17
|
* g722: Return 8 bits per sample for g722 in av_get_bits_per_sampleMartin Storsjö2011-04-11
| | | | | | | | This fixes a failing assert in ff_raw_read_header (in fate-g722dec-1), where bits_per_coded_sample is set using this function and is required to have a positive value. Signed-off-by: Martin Storsjö <martin@martin.st>
* Remove unnecessary parameter from ff_thread_init() and fix behaviorAlexander Strange2011-04-05
| | | | | | | | | | | thread_count passed to ff_thread_init() is only used to set AVCodecContext. thread_count, and can be removed. Instead move it to the legacy implementation of avcodec_thread_init(). This also fixes the problem that calling avcodec_thread_init() with pthreads enabled did not set it since ff1efc524cb3c60f2f746e3b4550bb1a86c65316. Signed-off-by: Janne Grunau <janne-libav@jannau.net>
* Replace FFmpeg with Libav in licence headersMans Rullgard2011-03-19
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* use LIBAV_LICENSE and LIBAV_VERSION instead of FFMPEG_*Janne Grunau2011-03-16
|
* replace FFMPEG with LIBAV in FFMPEG_CONFIGURATIONJanne Grunau2011-03-16
| | | | also update the multiple inclusion guards in config.h|mak
* Update the url to the site website and change ffmpeg-devel to libav-develJohan Andersson2011-03-13
| | | | Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* Merge libavcore into libavutilReinhard Tartler2011-02-15
| | | | | | | | | | | | It is pretty hopeless that other considerable projects will adopt libavutil alone in other projects. Projects that need small footprint are better off with more specialized libraries such as gnulib or rather just copy the necessary parts that they need. With this in mind, nobody is helped by having libavutil and libavcore split. In order to ease maintenance inside and around FFmpeg and to reduce confusion where to put common code, avcore's functionality is merged (back) to avutil. Signed-off-by: Reinhard Tartler <siretart@tauware.de>
* Remove incorrect return statement from avcodec_thread_free()Mans Rullgard2011-02-10
| | | | | | | 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>
* Fix build with threading disabledMans Rullgard2011-02-09
| | | | | | | | 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>
* check sample_fmt in avcodec_openReimar Döffinger2011-02-09
| | | | | | 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.
* Deprecate avcodec_thread_init()Alexander Strange2011-02-09
| | | | | | | | | | | | | | 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>
* Frame-based multithreading framework using pthreadsAlexander Strange2011-02-09
| | | | | | See doc/multithreading.txt for details on use in codecs. Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* Set pkt_pts in avcodec_default_reget_buffer()Nicolas George2011-02-03
| | | | | | | 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>
* Make the ff_lockmgr_cb function pointer static to utils.cDiego Elio Pettenò2011-01-24
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* update av_log_missing_feature() to gitJanne Grunau2011-01-17
| | | | Signed-off-by: Janne Grunau <janne-ffmpeg@jannau.net>