aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/utils.c
Commit message (Collapse)AuthorAgeFilesLines
...
* | Merge commit 'c4bfa098072ba338d83555d6e2199f7e1e64ffff'Michael Niedermayer2013-09-191-0/+1
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit 'c4bfa098072ba338d83555d6e2199f7e1e64ffff': Add a WebP decoder Conflicts: Changelog doc/general.texi libavcodec/Makefile libavcodec/avcodec.h libavcodec/version.h libavformat/img2.c The previously existing webp decoder is disabled as the new one supports lossless mode and alpha while the previous does not. Merged-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/utils: add 16bit planar YUV formats to avcodec_align_dimensions2()Michael Niedermayer2013-09-111-0/+12
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | lavc/utils: Add support for discarding samples from the endVignesh Venkatasubramanian2013-09-101-0/+21
| | | | | | | | | | | | | | | | | | Adding support for discarding samples from the end based on the value in AV_PKT_DATA_SKIP_SAMPLES side data's bytes 5-8. Signed-off By: Vignesh Venkatasubramanian <vigneshv@google.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/util: Make size argument of ff_alloc_packet2() int64_tMichael Niedermayer2013-09-091-4/+4
| | | | | | | | | | | | This ensures that huge sizes dont get truncated before the check in ff_alloc_packet2() Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec: make avcodec_close() more tolerant.Clément Bœsch2013-09-041-1/+6
| | | | | | | | See previous commit.
* | Show subtitle resolution in avcodec_string().Carl Eugen Hoyos2013-09-041-0/+5
| |
* | avcodec/utils: avcodec_string: print colorspace typeMichael Niedermayer2013-08-311-0/+15
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/utils: avcodec_string: Print color_rangeMichael Niedermayer2013-08-311-0/+3
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/utils: avcodec_string: make the colorspace printing code more ↵Michael Niedermayer2013-08-311-2/+6
| | | | | | | | | | | | extendible. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/utils: support non edge emu for grayscaleMichael Niedermayer2013-08-291-1/+2
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge remote-tracking branch 'qatar/master'Michael Niedermayer2013-08-211-1/+1
|\| | | | | | | | | | | | | * qatar/master: avcodec/utils: Simplify a condition that combines HAVE_NEON and ARCH_ARM Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * avcodec/utils: Simplify a condition that combines HAVE_NEON and ARCH_ARMDiego Biurrun2013-08-211-1/+1
| |
* | Fix wrong use of "an" in some comments.Thilo Borgmann2013-08-121-1/+1
| |
* | avcodec: Remove ff_packet_free_side_data, use av_packet_free_side_dataMichael Niedermayer2013-08-121-4/+4
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Integrate accessors.h header into internal.hReimar Döffinger2013-08-101-1/+0
| | | | | | | | | | | | | | I have no idea why I added a separate header, I think there is no good reason for it. Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
* | Reduce MAKE_ACCESSORS code duplication via a new header.Reimar Döffinger2013-08-081-4/+1
| | | | | | | | Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
* | Merge commit '7950e519bb094897f957b9a9531cc60ba46cbc91'Michael Niedermayer2013-08-031-0/+13
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '7950e519bb094897f957b9a9531cc60ba46cbc91': Disable deprecation warnings for cases where a replacement is available Conflicts: libavcodec/avpacket.c libavcodec/pthread.c libavcodec/utils.c libavdevice/v4l2.c libavfilter/avfiltergraph.c libavfilter/buffersrc.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * Disable deprecation warnings for cases where a replacement is availableDiego Biurrun2013-08-021-0/+13
| |
| * lavc: free the padded last frame during audio encoding properlyAnton Khirnov2013-06-201-6/+1
| |
* | lavc: do not override format if neither text nor bitmap codec prop is setMarton Balint2013-07-271-1/+4
| | | | | | | | | | | | | | Some decoders may output both, this way the decoder can set it. Signed-off-by: Marton Balint <cus@passwd.hu> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Show max bitrate for mpeg2 video streams in avcodec_string().Carl Eugen Hoyos2013-07-251-0/+3
| | | | | | | | See also 25b7aa9
* | avcodec/utils: Warn the user about the lack of a lock manager if ↵Michael Niedermayer2013-07-241-0/+2
| | | | | | | | | | | | | | | | | | | | insufficient locks are detected A lock manager is not the only possibility to avoid open/close locking issues but its easier and more robust than maintaining a lot of lock/unlock calls. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/utils: use av_assert0() to check validity of input pointers for ↵Michael Niedermayer2013-07-231-1/+1
| | | | | | | | | | | | start code search Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec: add avcodec_chroma_pos_to_enum()Michael Niedermayer2013-07-231-0/+11
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec: add avcodec_enum_to_chroma_pos()Michael Niedermayer2013-07-231-0/+12
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/avutil: Add AVColorSpace and AVColorRange to AVFramesMichael Niedermayer2013-07-171-0/+5
| | | | | | | | | | | | This also moves AVColorSpace and AVColorRange from avcodec to avutil Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | ADPCM IMA WAV 2, 3 and 5 bits decoderPaul B Mahol2013-07-051-1/+3
| | | | | | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* | Avoid a null pointer dereference in avcodec_decode_audio4().Carl Eugen Hoyos2013-07-011-0/+2
| | | | | | | | | | This could happen if oom occured while probing a file. Fixes ticket #2722.
* | avcodec: Make av_register_hwaccel() and avcodec_register() thread safeMichael Niedermayer2013-06-291-6/+5
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Avoid a null pointer dereference in avcodec_decode_video2().Carl Eugen Hoyos2013-06-281-0/+2
| | | | | | | | | | This could happen if oom occured while probing a file. Reported in ticket #1900.
* | lavc/utils: improve feedback in case of invalid packet sizeStefano Sabatini2013-06-261-2/+7
| |
* | Merge commit '985f34b75653d02eda8eb8def3412f8577f19b01'Michael Niedermayer2013-06-171-0/+3
|\| | | | | | | | | | | | | | | | | | | * commit '985f34b75653d02eda8eb8def3412f8577f19b01': utils: fix avcodec_flush_buffers pre-reference counting compatibility Conflicts: libavcodec/utils.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * utils: fix avcodec_flush_buffers pre-reference counting compatibilityJanne Grunau2013-06-161-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | The to_free AVframe must be freed just like the other ones. Indeed, the calling application may expect all frames to be released. (This regression caused use-after-free in VLC with hwaccel.) Signed-off-by: Rémi Denis-Courmont <remi@remlab.net> Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* | avcodec_encode_audio2: fix memleak on last padded frameMichael Niedermayer2013-06-141-6/+1
| | | | | | | | | | | | Regression introduced by 799f57ac96f9891d1a0f7d6c4b218ed536e8aca5 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge commit '799f57ac96f9891d1a0f7d6c4b218ed536e8aca5'Michael Niedermayer2013-06-111-15/+9
|\| | | | | | | | | | | | | * commit '799f57ac96f9891d1a0f7d6c4b218ed536e8aca5': lavc: use AVFrame API properly in pad_last_frame(). Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * lavc: use AVFrame API properly in pad_last_frame().Anton Khirnov2013-06-101-15/+8
| | | | | | | | This also simplifies the code.
* | avcodec/utils: Fix encoder allocation sizeMichael Niedermayer2013-06-111-1/+1
| | | | | | | | | | | | Fixes Ticket2645 Found-by: Darrell Walisser Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | audio frame multi-threaded decodingPaul B Mahol2013-06-051-3/+7
| | | | | | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* | Merge commit '2d66a58ccde05e764594bd7e5f0f9244634d0b2c'Michael Niedermayer2013-06-031-0/+1
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '2d66a58ccde05e764594bd7e5f0f9244634d0b2c': Go2Webinar decoder Conflicts: Changelog configure libavcodec/avcodec.h libavcodec/codec_desc.c libavcodec/version.h libavformat/riff.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
* | add YUVJ411PMichael Niedermayer2013-05-211-0/+1
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec_align_dimensions2: add missing yuva formatsMichael Niedermayer2013-05-181-0/+12
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge remote-tracking branch 'qatar/master'Michael Niedermayer2013-05-181-0/+1
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | * qatar/master: Escape 130 (RPL) decoder Conflicts: libavcodec/Makefile libavcodec/allcodecs.c libavcodec/codec_desc.c libavcodec/escape130.c libavcodec/version.h Merged-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge commit '30e256430eb88c6d4c382581b89bca171d79fbc0'Michael Niedermayer2013-05-171-1/+1
|\| | | | | | | | | | | | | | | | | | | * commit '30e256430eb88c6d4c382581b89bca171d79fbc0': lavc/pthread: remove obsolete checks Conflicts: libavcodec/utils.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * lavc/pthread: remove obsolete checksAnton Khirnov2013-05-171-1/+1
| | | | | | | | | | | | Those were useful when avcodec_thread_init() was a public functions. It was deprecated and removed some time ago, so those checks are not needed anymore.
* | replace remaining PIX_FMT_* flags with AV_PIX_FMT_FLAG_*Michael Niedermayer2013-05-151-1/+1
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge remote-tracking branch 'qatar/master'Michael Niedermayer2013-05-151-2/+2
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * qatar/master: pixdesc: rename PIX_FMT_* flags to AV_PIX_FMT_FLAG_* Conflicts: doc/APIchanges libavcodec/avpicture.c libavcodec/ffv1dec.c libavcodec/ffv1enc.c libavcodec/imgconvert.c libavcodec/tiffenc.c libavfilter/vf_pixdesctest.c libavfilter/vf_scale.c libavutil/imgutils.c libavutil/pixdesc.c libavutil/version.h libswscale/swscale_internal.h Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * pixdesc: rename PIX_FMT_* flags to AV_PIX_FMT_FLAG_*Anton Khirnov2013-05-151-2/+2
| |
* | Merge commit '252c0bfdc014c1fb6ad4fe06242c7beca58a6b41'Michael Niedermayer2013-05-151-0/+1
|\| | | | | | | | | | | | | * commit '252c0bfdc014c1fb6ad4fe06242c7beca58a6b41': lavc: Fix msvc compilation of utils.c with -WX (warnings treated as errors) Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * lavc: Fix msvc compilation of utils.c with -WX (warnings treated as errors)Matt Wolenetz2013-05-141-0/+1
| | | | | | | | | | | | This fixes https://bugzilla.libav.org/show_bug.cgi?id=514. Signed-off-by: Martin Storsjö <martin@martin.st>
* | ADPCM IMA Radical decoderJames Almer2013-05-101-0/+2
| | | | | | | | Signed-off-by: James Almer <jamrial@gmail.com>