Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | libavcodec/utils: Add braces to shut up gcc warnings | Diego Biurrun | 2012-12-30 | 1 | -2/+2 |
| | | | | | libavcodec/utils.c:1050:5: warning: missing braces around initializer [-Wmissing-braces] libavcodec/utils.c:1314:5: warning: missing braces around initializer [-Wmissing-braces] | ||||
* | lavc: set frame parameters after decoding only if necessary | Janne Grunau | 2012-12-13 | 1 | -5/+8 |
| | | | | | | | | Direct rendering capable decoders call get_buffer() which will set the frame parameters. Prevents frames with wrong parameters when a decoder outputs delayed frames after a resolution or pixel format change. | ||||
* | lavc: factorise setting buffer type in avcodec_default_get_buffer(). | Anton Khirnov | 2012-12-04 | 1 | -3/+1 |
| | |||||
* | lavc: don't reuse audio buffers | Anton Khirnov | 2012-12-04 | 1 | -65/+11 |
| | | | | | Any performance gain from this is negligible and not worth the extra code. | ||||
* | lavc: set frame properties in ff_get_buffer(). | Anton Khirnov | 2012-12-04 | 1 | -20/+18 |
| | | | | | There is no point in duplicating this code in every get_buffer() implementation. | ||||
* | lavc: add a wrapper for AVCodecContext.get_buffer(). | Anton Khirnov | 2012-12-04 | 1 | -3/+8 |
| | | | | It will be useful in the upcoming transition to refcounted AVFrames. | ||||
* | avcodec: remove ff_is_hwaccel_pix_fmt | Luca Barbato | 2012-11-13 | 1 | -1/+7 |
| | | | | | It is used only in one place and is unlikely it would be needed elsewhere. | ||||
* | pixdesc: add av_pix_fmt_get_chroma_sub_sample | Luca Barbato | 2012-11-13 | 1 | -1/+2 |
| | | | | Deprecate avcodec_get_chroma_sub_sample. | ||||
* | Include libavutil/channel_layout.h instead of libavutil/audioconvert.h | Justin Ruggles | 2012-11-11 | 1 | -2/+1 |
| | | | | Also reorder some other #include when applicable. | ||||
* | decode_audio3: initialize AVFrame | Ilkka Ollakka | 2012-11-01 | 1 | -1/+1 |
| | | | | | | Same fix and issue as in a25d912dca9cd553440167e0476c47581359c0fc Signed-off-by: Anton Khirnov <anton@khirnov.net> | ||||
* | lavc: check channel count after decoder init | Justin Ruggles | 2012-11-01 | 1 | -0/+5 |
| | | | | | | Ensures the decoder did not set channel count to an insanely high value during initialization, which could cause large memory usage when it tries to get a buffer during decoding. | ||||
* | lavc: move SANE_NB_CHANNELS to internal.h and use it in the PCM decoders | Justin Ruggles | 2012-11-01 | 1 | -2/+1 |
| | |||||
* | lavc: initialize output AVFrame before decoding. | Anton Khirnov | 2012-10-24 | 1 | -0/+4 |
| | | | | | | | Avoids memleaks with audio when extended_data is nontrivial and the user doesn't reset the frame. Shouldn't have any effect for video for now, but might be useful in the future. | ||||
* | lavc: use the correct API version guard macro for avcodec_encode_audio() | Justin Ruggles | 2012-10-23 | 1 | -1/+1 |
| | |||||
* | avcodec: handle AVERROR_EXPERIMENTAL | Nathan Caldwell | 2012-10-21 | 1 | -0/+6 |
| | | | | | | | | | | Error out on init if a codec with CODEC_CAP_EXPERIMENTAL is requested and strict_std_compliance is not FF_COMPLIANCE_EXPERIMENTAL. Move the check from avconv to avcodec_open2() and return AVERROR_EXPERIMENTAL accordingly. Signed-off-by: Luca Barbato <lu_zero@gentoo.org> | ||||
* | avcodec: prefer decoders without CODEC_CAP_EXPERIMENTAL | Nathan Caldwell | 2012-10-21 | 1 | -10/+9 |
| | | | | Signed-off-by: Luca Barbato <lu_zero@gentoo.org> | ||||
* | avcodec_encode_audio(): fix invalid free | Rafaël Carré | 2012-10-16 | 1 | -1/+1 |
| | | | | | | | Since 2bc0de385, AVFrame needs to be initialized before calling avcodec_get_frame_defaults(). Signed-off-by: Anton Khirnov <anton@khirnov.net> | ||||
* | avutil: Rename ff_set_systematic_pal2() ---> avpriv_set_systematic_pal2() | Diego Biurrun | 2012-10-13 | 1 | -1/+1 |
| | | | | Functions used across libraries should have avpriv_ and not ff_ prefixes. | ||||
* | avutil: add yuva422p and yuva444p formats | Luca Barbato | 2012-10-12 | 1 | -0/+2 |
| | |||||
* | lavc: do not use av_pix_fmt_descriptors directly. | Anton Khirnov | 2012-10-12 | 1 | -2/+4 |
| | |||||
* | avcodec: free extended_data instead address of it | Janne Grunau | 2012-10-09 | 1 | -1/+1 |
| | | | | Fixes CID732173. | ||||
* | Restructure av_log_missing_feature message | Diego Biurrun | 2012-10-09 | 1 | -1/+1 |
| | | | | | | | | Some invocations include a verb in the log message, others do not. Yet av_log_missing_feature expects callers to provide a verb. Change the function to include a verb instead and update the callers accordingly. The result is a more natural function API and correct English in the function invocations. | ||||
* | Replace PIX_FMT_* -> AV_PIX_FMT_*, PixelFormat -> AVPixelFormat | Anton Khirnov | 2012-10-08 | 1 | -45/+45 |
| | |||||
* | avcodec: allow either planar or interleaved sample format when encoding mono | Justin Ruggles | 2012-10-07 | 1 | -1/+8 |
| | | | | | When there is only 1 channel, the planar and interleaved formats of the same data type should be treated as identical. | ||||
* | avcodec: Drop silly and/or broken printf debug output | Diego Biurrun | 2012-10-01 | 1 | -1/+0 |
| | |||||
* | lavc: set channel count from channel layout in avcodec_open2(). | Anton Khirnov | 2012-09-29 | 1 | -4/+9 |
| | | | | | Some decoders (e.g. nellymoser) only set channel_layout and do not set channel count. | ||||
* | avcodec: Drop long-deprecated imgconvert.h header | Diego Biurrun | 2012-09-27 | 1 | -1/+0 |
| | |||||
* | lavc: add avcodec_free_frame(). | Anton Khirnov | 2012-09-24 | 1 | -0/+15 |
| | | | | | Since an AVFrame now has malloced members (extended_data), it must have a destructor. | ||||
* | lavc: ensure extended_data is set properly on decoding | Anton Khirnov | 2012-09-24 | 1 | -0/+14 |
| | |||||
* | lavc: initialize AVFrame.extended_data in avcodec_get_frame_defaults() | Anton Khirnov | 2012-09-24 | 1 | -0/+4 |
| | |||||
* | lavc: use av_mallocz to allocate AVFrames. | Anton Khirnov | 2012-09-24 | 1 | -1/+1 |
| | | | | | Otherwise the frame is uninitialized, so avcodec_get_frame_defaults() cannot determine whether to free extended_data. | ||||
* | lavc: rename the argument of avcodec_alloc_frame/get_frame_defaults | Anton Khirnov | 2012-09-24 | 1 | -10/+10 |
| | | | | | AVFrame is used for both audio and video, so calling the argument 'pic' is misleading. | ||||
* | avcodec: fix memleak in avcodec_encode_audio2() | Justin Ruggles | 2012-09-22 | 1 | -3/+6 |
| | | | | Ensure that padded_frame is freed before returning when needed. | ||||
* | avcodec: cleanup utils.c | Luca Barbato | 2012-09-18 | 1 | -232/+263 |
| | |||||
* | lavc: replace AVCodecContext.encode with subtitle-specific callback | Anton Khirnov | 2012-09-17 | 1 | -2/+2 |
| | | | | | AVCodecContext.encode is currently used only for subtitles, encode2 is used for audio and video. | ||||
* | lavc: add const to private codec class initialization. | Anton Khirnov | 2012-09-17 | 1 | -1/+1 |
| | | | | Silences a warning about discarding const. | ||||
* | lavc: add const to AVCodec* function parameters. | Anton Khirnov | 2012-08-18 | 1 | -5/+6 |
| | |||||
* | Replace all CODEC_ID_* with AV_CODEC_ID_* | Anton Khirnov | 2012-08-07 | 1 | -96/+96 |
| | |||||
* | Add support for iLBC decoding/encoding via the external library libilbc | Martin Storsjö | 2012-06-18 | 1 | -0/+5 |
| | | | | | | The library is 3-clause BSD licensed. Signed-off-by: Martin Storsjö <martin@martin.st> | ||||
* | avcodec/utils: cast a function argument to shut up a compiler warning | Diego Biurrun | 2012-05-20 | 1 | -1/+2 |
| | | | | libavcodec/utils.c:251: note: expected ‘const uint8_t *’ but argument is of type ‘const short int *’ | ||||
* | lavc: check that extended_data is properly set in avcodec_encode_audio2(). | Anton Khirnov | 2012-05-09 | 1 | -0/+17 |
| | |||||
* | lavc: pad last audio frame with silence when needed. | Anton Khirnov | 2012-05-09 | 1 | -0/+64 |
| | |||||
* | avcodec: do not needlessly set packet size to 0 in avcodec_encode_audio2() | Justin Ruggles | 2012-05-07 | 1 | -1/+0 |
| | | | | It is already set to 0 by av_free_packet() | ||||
* | avcodec: for audio encoding, reset output packet when it is not valid | Justin Ruggles | 2012-05-07 | 1 | -1/+4 |
| | |||||
* | avcodec: refactor avcodec_encode_audio2() to merge common branches | Justin Ruggles | 2012-05-07 | 1 | -3/+3 |
| | |||||
* | avcodec: remove fallbacks for AVCodec.encode() in avcodec_encode_audio2() | Justin Ruggles | 2012-05-07 | 1 | -68/+2 |
| | | | | We no longer have any audio encoders using AVCodec.encode(). | ||||
* | lavc: add sample rate and channel layout to AVFrame. | Anton Khirnov | 2012-05-07 | 1 | -0/+4 |
| | | | | Rationale is the same as for video width/height etc. | ||||
* | Remove lowres video decoding | Mans Rullgard | 2012-04-21 | 1 | -10/+3 |
| | | | | | | | This feature is complex, of questionable utility, and slows down normal decoding. Signed-off-by: Mans Rullgard <mans@mansr.com> | ||||
* | avcodec_string: Favor AVCodecContext.codec over the default codec. | Alex Converse | 2012-04-17 | 1 | -1/+3 |
| | | | | This improves output for formats with more than one AVCodec. | ||||
* | avcodec: use align == 0 for default alignment in avcodec_fill_audio_frame() | Justin Ruggles | 2012-04-09 | 1 | -2/+2 |
| | | | | Use default alignment in audio_get_buffer() |