summaryrefslogtreecommitdiff
path: root/libavcodec/utils.c
Commit message (Collapse)AuthorAge
* add YUVJ411PMichael Niedermayer2013-05-21
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* avcodec_align_dimensions2: add missing yuva formatsMichael Niedermayer2013-05-18
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* Merge remote-tracking branch 'qatar/master'Michael Niedermayer2013-05-18
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | * 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-17
|\| | | | | | | | | | | | | | | | | | | * 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-17
| | | | | | | | | | | | 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-15
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge remote-tracking branch 'qatar/master'Michael Niedermayer2013-05-15
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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-15
| |
* | Merge commit '252c0bfdc014c1fb6ad4fe06242c7beca58a6b41'Michael Niedermayer2013-05-15
|\| | | | | | | | | | | | | * 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-14
| | | | | | | | | | | | 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-10
| | | | | | | | Signed-off-by: James Almer <jamrial@gmail.com>
* | ADPCM DTK decoderJames Almer2013-05-10
| | | | | | | | Signed-off-by: James Almer <jamrial@gmail.com>
* | lavu: add FF_CEIL_RSHIFT and use it in various places.Clément Bœsch2013-05-09
| |
* | libswscale: GBRAP input & output and GBRAP16 input supportPaul B Mahol2013-05-08
| | | | | | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* | Merge commit 'e55e8b2c362a60bad66929d83d8c83b0d7f5ffc9'Michael Niedermayer2013-05-08
|\| | | | | | | | | | | | | | | | | | | * commit 'e55e8b2c362a60bad66929d83d8c83b0d7f5ffc9': lavc: do not leak frames in avcodec_decode_audio4 Conflicts: libavcodec/utils.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * lavc: do not leak frames in avcodec_decode_audio4Luca Barbato2013-05-07
| | | | | | | | | | | | | | Notwithstanding the return value the frame should be freed if is not going to be used. Reported-by: Matthew Wolenetz <wolenetz@chromium.org>
* | avcodec/utils: Fix leak by dereferencing audio frame when side data causes ↵Matt Wolenetz2013-05-07
| | | | | | | | | | | | whole frame skip Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec: Set frame.width/height on all exit pathes of ff_get_buffer()Michael Niedermayer2013-05-05
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge commit '6fee1b90ce3bf4fbdfde7016e0890057c9000487'Michael Niedermayer2013-05-05
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '6fee1b90ce3bf4fbdfde7016e0890057c9000487': avcodec: Add av_cold attributes to init functions missing them Conflicts: libavcodec/aacpsy.c libavcodec/atrac3.c libavcodec/dvdsubdec.c libavcodec/ffv1.c libavcodec/ffv1enc.c libavcodec/h261enc.c libavcodec/h264_parser.c libavcodec/h264dsp.c libavcodec/h264pred.c libavcodec/libschroedingerenc.c libavcodec/libxvid_rc.c libavcodec/mpeg12.c libavcodec/mpeg12enc.c libavcodec/proresdsp.c libavcodec/rangecoder.c libavcodec/videodsp.c libavcodec/x86/proresdsp_init.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * avcodec: Add av_cold attributes to init functions missing themDiego Biurrun2013-05-04
| |
* | avcodec: move lowres down with the next ABI bump and add accessorsMichael Niedermayer2013-05-03
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge commit '088f38a4f9f54bb923405c67c9e72d96d90aa284'Michael Niedermayer2013-05-01
|\| | | | | | | | | | | | | | | | | | | | | | | * commit '088f38a4f9f54bb923405c67c9e72d96d90aa284': avcodec: Drop unnecessary ff_ name prefixes from static functions Conflicts: libavcodec/ass.c libavcodec/h264_parser.c libavcodec/utils.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * avcodec: Drop unnecessary ff_ name prefixes from static functionsDiego Biurrun2013-04-30
| |
* | Merge commit 'e036bb7899d0faca9159206be9bf5552e76e7633'Michael Niedermayer2013-05-01
|\| | | | | | | | | | | | | | | * commit 'e036bb7899d0faca9159206be9bf5552e76e7633': lavc: clear AVBuffers on decoded frames if refcounted_frames is not set FATE: add an additional indeo3 test Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * lavc: clear AVBuffers on decoded frames if refcounted_frames is not setAnton Khirnov2013-04-30
| | | | | | | | | | Otherwise some code might mistakenly think it is allowed to unref those buffers, which would lead to double unref.
* | avcodec_string: Print the used codec if it differs from the codec_id name.Michael Niedermayer2013-04-27
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec_string: remove the "(hq)" listingMichael Niedermayer2013-04-27
| | | | | | | | | | | | | | printing "hq" depending on a single video encoding parameter makes little sense Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | lavc: check decoded subtitles encoding.Nicolas George2013-04-24
| | | | | | | | Address trac ticket #2431.
* | avcodec: Fix lowres handling in buffer allocationMichael Niedermayer2013-04-19
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge commit 'a7f46586bf47174b5fa00a905b767b1781ec8b72'Michael Niedermayer2013-04-19
|\| | | | | | | | | | | | | * commit 'a7f46586bf47174b5fa00a905b767b1781ec8b72': ff_get_buffer(): allocate the frame for max(coded,display) dimensions Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * ff_get_buffer(): allocate the frame for max(coded,display) dimensionsAnton Khirnov2013-04-19
| | | | | | | | Needed e.g. for h264 cropping to work properly.
| * lavc: don't overwrite display dimensions with coded dimensions.Anton Khirnov2013-04-10
| |
| * dsputil: Make dsputil selectableRonald S. Bultje2013-04-10
| | | | | | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* | lavc/utils: merge side data after video encode.Clément Bœsch2013-04-19
| | | | | | | | This allows encoders to communicate side data to the muxers.
* | lavc: avcodec_open2(): pass context to av_log()Paul B Mahol2013-04-16
| | | | | | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* | Add thread-safe wrapper for get_format().Reimar Döffinger2013-04-15
| | | | | | | | | | | | | | Just like get_buffer, get_format should not be called from a different thread if thread_safe_callbacks is not set. Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
* | lavc: fix recoded subtitles end.Nicolas George2013-04-07
| | | | | | | | | | | | | | | | | | | | | | Text subtitles packets are not 0-terminated (and if they are, it is handled by the recoding process since 0 is a valid Unicode code point). The terminating 0 would overwrite the last payload octet. OTOH, packets must be 0-padded. Fix a problem reported in trac ticket #2431.
* | lavc: use packet duration for subtitles if necessary.Nicolas George2013-04-04
| | | | | | | | Fix trac ticket #2397.
* | lavc: do not init frame with guessed layout.Nicolas George2013-04-03
| | | | | | | | It is breaking support from files with unknown layout.
* | Merge commit 'c24469e812501903a46a06eff9722a82e136e841'Michael Niedermayer2013-03-27
|\| | | | | | | | | | | | | | | | | | | | | * commit 'c24469e812501903a46a06eff9722a82e136e841': utils: add workaround for AVHWAccel in ff_get_buffer compat code configure: Remove a stray msmpeg4v1 encoder declaration Conflicts: libavcodec/utils.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * utils: add workaround for AVHWAccel in ff_get_buffer compat codeJanne Grunau2013-03-26
| | | | | | | | | | | | | | Since c977039e585bfff28ecc037ef827c6c3d1ed88aa plane count for PIX_FMT_HWACCEL pixel formats is 0 instead of 1. The created dummy AVBuffers are still bogus since AVFrame does not hold frame data when AVHWAccels are used.
* | Merge commit 'f1e9398621af0bc9d166014e4ce6996bb4f141d0'Michael Niedermayer2013-03-26
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | * commit 'f1e9398621af0bc9d166014e4ce6996bb4f141d0': lavc: Rename avpriv_mpv_find_start_code after moving out from mpegvideo Conflicts: libavcodec/h264_parser.c libavcodec/internal.h libavcodec/mpeg12.c libavcodec/utils.c libavformat/mpegtsenc.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * lavc: Rename avpriv_mpv_find_start_code after moving out from mpegvideoMartin Storsjö2013-03-26
| | | | | | | | | | | | | | Also move the declaration to internal.h, and add restrict qualifiers to the declaration (as in the implementation). Signed-off-by: Martin Storsjö <martin@martin.st>
* | Merge commit '75644335b907919057960716508477239c26fed4'Michael Niedermayer2013-03-26
|\| | | | | | | | | | | | | | | | | | | | | | | * commit '75644335b907919057960716508477239c26fed4': lavc: Move start code finding to utils.c Conflicts: configure libavcodec/mpegvideo.c libavcodec/utils.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * lavc: Move start code finding to utils.cMartin Storsjö2013-03-26
| | | | | | | | | | | | | | | | | | | | This allows dropping the mpegvideo dependency from a number of components. This also fixes standalone building of the h264 parser, which was broken in 64e438697. Signed-off-by: Martin Storsjö <martin@martin.st>
* | avcodec/utils: initialize pixel buffer poolMichael Niedermayer2013-03-25
| | | | | | | | | | | | | | | | | | | | | | | | This should silence many valgrind warnings about use of uninitialized data, all the warnings i looked at where false positives having their uninitialized data not actually used. The same effect could be achieved by listing all code that touches the pixel buffer in the valgrind suppression file. Note, valgrind also fails to trace the origins correctly. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Do not fail in get_buffer_internal() if pix_fmt planes == 0.Carl Eugen Hoyos2013-03-22
| | | | | | | | Fixes VDPAU decoding, reported by Ilja Sekler
* | lavc/utils: fix metadata audio frame memleak in case of non refcounted frames.Clément Bœsch2013-03-21
| | | | | | | | | | | | | | | | The metadata must be set before saving the frame to avci->to_free, otherwise it will leak. Signed-off-by: Hendrik Leppkes <h.leppkes@gmail.com> Signed-off-by: Clément Bœsch <ubitux@gmail.com>
* | Merge commit '6599b087de62a5f9f2a8d61a1952d777d1bff804'Michael Niedermayer2013-03-20
|\| | | | | | | | | | | | | | | * commit '6599b087de62a5f9f2a8d61a1952d777d1bff804': buffersrc: fix a typo. lavc, lavfi: fix counting number of planes in AVBufferRef wrappers Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * lavc, lavfi: fix counting number of planes in AVBufferRef wrappersAnton Khirnov2013-03-19
| | | | | | | | | | | | Number of planes is not always equal to the number of components even for formats marked with PIX_FMT_PLANAR -- e.g. NV12 has three components in two planes.