aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/utils.c
Commit message (Collapse)AuthorAgeFilesLines
...
* | lavc/utils: reindent in avcodec_decode_subtitle2() after f7963993.Clément Bœsch2013-02-171-10/+10
| |
* | lavc: support subtitles character encoding conversion.Clément Bœsch2013-02-171-3/+103
| |
* | lavc: mark bitmap based subtitles codecs as such.Clément Bœsch2013-02-171-1/+1
| |
* | Merge commit 'd2a25c4032ce6ceabb0f51b5c1e6ca865395a793'Michael Niedermayer2013-02-161-1/+0
|\| | | | | | | | | | | | | | | | | | | * commit 'd2a25c4032ce6ceabb0f51b5c1e6ca865395a793': get_buffer(): do not initialize the data. Conflicts: libavcodec/utils.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * get_buffer(): do not initialize the data.Anton Khirnov2013-02-151-1/+0
| | | | | | | | | | There may be more decoders that rely on this. Those should be found and fixed.
* | avcodec: add avpriv_color_frame()Michael Niedermayer2013-02-161-0/+22
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge remote-tracking branch 'qatar/master'Michael Niedermayer2013-02-141-0/+7
|\| | | | | | | | | | | | | | | | | | | | | * qatar/master: doc/platform: Fix 10l typo dsputil: Move STRIDE_ALIGN macro to the only place it is used Conflicts: libavcodec/dsputil.h Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * dsputil: Move STRIDE_ALIGN macro to the only place it is usedDiego Biurrun2013-02-131-0/+7
| |
* | lavc: include timebase in avcodec string at debug level.Michael Niedermayer2013-01-241-0/+9
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | EVRC decoderPaul B Mahol2013-01-211-0/+1
| | | | | | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* | avcodec_decode_audio: do not trust the channel layout, use the channel count.Michael Niedermayer2013-01-181-1/+1
| | | | | | | | | | | | | | Fixes memory corruption Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge commit 'bff3607547fdbb6e32b3830a351e6a33280c1e0d'Michael Niedermayer2013-01-151-0/+3
|\| | | | | | | | | | | | | | | | | | | * commit 'bff3607547fdbb6e32b3830a351e6a33280c1e0d': lavc: set the default rc_initial_buffer_occupancy Conflicts: libavcodec/utils.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * lavc: set the default rc_initial_buffer_occupancyLuca Barbato2013-01-151-0/+3
| | | | | | | | | | | | | | | | | | | | | | rc_buffer_size is not set before. Solve the initial the rate control underflow issue reported in bug 222. CC: libav-stable@libav.org Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* | Merge commit '64bb3fa6b7f5b2db22b7577585d5861be24eebd8'Michael Niedermayer2012-12-311-2/+2
|\| | | | | | | | | | | | | | | | | | | | | | | | | * commit '64bb3fa6b7f5b2db22b7577585d5861be24eebd8': cavs: cosmetics, reformat top part cavsdec: cosmetics, reformat libavcodec/utils: Add braces to shut up gcc warnings Conflicts: libavcodec/cavsdec.c libavcodec/utils.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * libavcodec/utils: Add braces to shut up gcc warningsDiego Biurrun2012-12-301-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: correctly set AVSubtitle format for text based subtitles.Clément Bœsch2012-12-311-0/+1
| |
* | lavc/utils: reindent in avcodec_decode_subtitle2().Clément Bœsch2012-12-311-5/+5
| |
* | 10l: export ff_bprint_to_extradata between libs using avpriv_ prefix.Clément Bœsch2012-12-301-1/+1
| | | | | | | | Both libavformat and libavcodec requires this function.
* | lavc: add ff_bprint_to_extradata() helper and use it.Clément Bœsch2012-12-301-0/+19
| | | | | | | | | | | | | | | | | | | | This commit also makes sure the extradata and subtitle_header are NUL terminated, without taking into account the trailing '\0' in account in the size. At the same time, it should fix 'warning: dereferencing type-punned pointer will break strict-aliasing rules' warning for compilers who don't consider uint8_t** and char** compatibles.
* | lavc/utils: fix 'warning: missing braces around initializer'Michael Niedermayer2012-12-261-2/+2
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | lavc: Warn in case the set bitrate is very lowMichael Niedermayer2012-12-211-0/+4
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Show underscores in av_get_codec_tag_string().Carl Eugen Hoyos2012-12-191-1/+1
| |
* | lavc: add pkt_size field to AVFrameStefano Sabatini2012-12-151-0/+4
| |
* | Merge commit 'bd255f9feb4deea4c990e582f0ba3b90d7b64b4c'Michael Niedermayer2012-12-141-5/+8
|\| | | | | | | | | | | | | | | | | | | * commit 'bd255f9feb4deea4c990e582f0ba3b90d7b64b4c': lavc: set frame parameters after decoding only if necessary Conflicts: libavcodec/utils.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * lavc: set frame parameters after decoding only if necessaryJanne Grunau2012-12-131-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/utils: Do not require dimensions for PNG.Michael Niedermayer2012-12-111-1/+3
| | | | | | | | | | | | pngenc doesnt need them and mplayer doesnt set them. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Print bpc (for bits per component) with pixel format if it is smaller than ↵Carl Eugen Hoyos2012-12-111-0/+4
| | | | | | | | expected.
* | Merge commit '57231e4d5b467833fb289439cd35a92513bb55c1'Michael Niedermayer2012-12-081-0/+1
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '57231e4d5b467833fb289439cd35a92513bb55c1': tak: demuxer, parser, and decoder Not merged as requested by Author and Maintainer of tak in FFmpeg. I just merged a few typo fixes and minor cosmetic improvments. Conflicts: Changelog libavcodec/Makefile libavcodec/allcodecs.c libavcodec/avcodec.h libavcodec/tak.c libavcodec/tak.h libavcodec/tak_parser.c libavcodec/takdec.c libavcodec/version.h libavformat/takdec.c libavformat/version.h Merged-by: Michael Niedermayer <michaelni@gmx.at>
* | lavc: check dimensions for video encodersMichael Niedermayer2012-12-071-0/+7
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | ff_lock_avcodec: make the lock state be consistent in case of failure.Michael Niedermayer2012-12-061-0/+2
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec_open: if obtaining a lock fails, dont attempt to unlock it.Michael Niedermayer2012-12-061-1/+1
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | frame_thread_encoder: fix locking while locks are heldMichael Niedermayer2012-12-061-4/+4
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec: add ff_lock/unlock_avcodec functions.Reimar Döffinger2012-12-051-56/+40
| | | | | | | | | | | | | | Will be used in future patches, together with the variable that allows checking whether the lock is held. Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
* | Merge commit '387bef95d28019c13c6805cfa4079e59948284e5'Michael Niedermayer2012-12-051-3/+1
|\| | | | | | | | | | | | | * commit '387bef95d28019c13c6805cfa4079e59948284e5': lavc: factorise setting buffer type in avcodec_default_get_buffer(). Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * lavc: factorise setting buffer type in avcodec_default_get_buffer().Anton Khirnov2012-12-041-3/+1
| |
* | Merge commit 'e57c4706e969afa1f2384481b955ccd9494cddb5'Michael Niedermayer2012-12-051-65/+11
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit 'e57c4706e969afa1f2384481b955ccd9494cddb5': lavc: don't reuse audio buffers This commit causes a 0.5% speedloss for mp3 and 2% for raw pcm, that is "time ffmpeg" style tested thus includes disk IO, demux and parsing I would not have merged it if it wasnt required for the "new" buffer API but sadly it is. Once the new API is in ill reimplement proper buffer reuse, which will fix this speedloss. In case we choose not to merge the "new" buffer API then this commit here should be reverted. Conflicts: libavcodec/internal.h libavcodec/utils.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * lavc: don't reuse audio buffersAnton Khirnov2012-12-041-65/+11
| | | | | | | | | | Any performance gain from this is negligible and not worth the extra code.
* | lavc: move ff_init_buffer_info() down to ff_get_buffer()Michael Niedermayer2012-12-051-42/+24
| | | | | | | | | | | | and remove redundant code from ff_get_buffer() Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge commit 'ff953fecffd3b9a616a046723fb9d4690be032a6'Michael Niedermayer2012-12-051-8/+20
|\| | | | | | | | | | | | | | | | | | | * commit 'ff953fecffd3b9a616a046723fb9d4690be032a6': lavc: set frame properties in ff_get_buffer(). Conflicts: libavcodec/utils.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * lavc: set frame properties in ff_get_buffer().Anton Khirnov2012-12-041-20/+18
| | | | | | | | | | There is no point in duplicating this code in every get_buffer() implementation.
* | Merge commit '594d4d5df3c70404168701dd5c90b7e6e5587793'Michael Niedermayer2012-12-051-3/+8
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '594d4d5df3c70404168701dd5c90b7e6e5587793': lavc: add a wrapper for AVCodecContext.get_buffer(). Conflicts: libavcodec/4xm.c libavcodec/8svx.c libavcodec/bmv.c libavcodec/cljr.c libavcodec/cscd.c libavcodec/dnxhddec.c libavcodec/dpcm.c libavcodec/dpx.c libavcodec/eacmv.c libavcodec/eamad.c libavcodec/frwu.c libavcodec/g723_1.c libavcodec/gifdec.c libavcodec/idcinvideo.c libavcodec/iff.c libavcodec/indeo3.c libavcodec/internal.h libavcodec/interplayvideo.c libavcodec/kmvc.c libavcodec/mpc7.c libavcodec/mpegaudiodec.c libavcodec/pcx.c libavcodec/pngdec.c libavcodec/pnmdec.c libavcodec/rl2.c libavcodec/snow.c libavcodec/targa.c libavcodec/tscc.c libavcodec/txd.c libavcodec/utils.c libavcodec/v210dec.c libavcodec/vb.c libavcodec/vmdav.c libavcodec/vp56.c libavcodec/vqavideo.c libavcodec/wavpack.c libavcodec/wnv1.c libavcodec/xl.c libavcodec/yop.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * lavc: add a wrapper for AVCodecContext.get_buffer().Anton Khirnov2012-12-041-3/+8
| | | | | | | | It will be useful in the upcoming transition to refcounted AVFrames.
* | lavc: fix duplicate stats_out line.Michael Niedermayer2012-11-301-0/+3
| | | | | | | | | | Found-by: Thierry Foucu Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | iff demuxer: 16SV supportPaul B Mahol2012-11-281-0/+2
| | | | | | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* | av_get_audio_frame_duration: add ADPCM_AFCPaul B Mahol2012-11-261-0/+2
| | | | | | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* | lavc/utils: check return value of avcodec_fill_audio_frame() for < 0Stefano Sabatini2012-11-251-2/+2
| | | | | | | | | | Assume that the value is always negative in case of error, as stated in the docs, do not assume that the value cannot be != 0 in case of success.
* | ADPCM IMA Dialogic decoderPaul B Mahol2012-11-241-0/+1
| | | | | | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* | 8svx: move pcm_s8_planar decoder to pcm.cPaul B Mahol2012-11-201-0/+1
| | | | | | | | | | | | | | | | | | | | Removes limitation of max 2 channels for pcm_s8_planar decoder by moving it to more natural place. AV_CODEC_ID_8SVX_RAW is not used by anything anymore and is going to be removed. Signed-off-by: Paul B Mahol <onemda@gmail.com>
* | PCM signed 16-bit big-endian planar decoderPaul B Mahol2012-11-171-0/+1
| | | | | | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* | PCM signed 24-bit/32-bit little-endian planar decoderPaul B Mahol2012-11-171-0/+2
| | | | | | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>