summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* g723_1: Move sharable functions to a separate fileVittorio Giovara2015-11-304-373/+443
| | | | Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* g723_1: Rename files to better reflect their purposeVittorio Giovara2015-11-303-5/+5
| | | | Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* g723_1: Handle values at the ends of the table in lsp2lpc()Michael Niedermayer2015-11-302-2/+3
| | | | | | | | Fixes out of array reads. Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at> Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* matroska: Warn when metadata references a non-existent elementLuca Barbato2015-11-281-6/+37
| | | | | | Avoid some confusion when the information is not present. Bug-Id: 902
* dvenc: Validate the frame size before copying itLuca Barbato2015-11-281-0/+5
|
* pgssubdec: fix API compability layerPetri Hintukainen2015-11-261-10/+10
| | | | | | | Copy pointers to AVPicture after memory has been allocated. Fixes NULL pointers in AVPicture after a17a7661906ba295d67afd80ac0770422e1b02b3. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* doc: Amend the MSYS2 DocumentationLuca Barbato2015-11-261-5/+6
| | | | | Explain better which environment is discouraged and mention the shortcuts names.
* avfoundation: Simple captureAlexandre Lision2015-11-266-1/+697
| | | | | | | Originally based on the capture written by Thilo Borgmann <thilo.borgmann@mail.de>. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* configure: ObjC supportLuca Barbato2015-11-262-1/+53
| | | | | | | Assume that the default C compiler and the default ObjC compiler match (default for OSX). Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* nut: Mark non-fatal errors as warningsLuca Barbato2015-11-251-2/+4
| | | | And make one more informative.
* nut: Provide more information on failureLuca Barbato2015-11-251-5/+10
|
* rtsp: Log getaddrinfo failuresLuca Barbato2015-11-253-10/+20
| | | | And forward the logging contexts when needed.
* udp: Provide additional information on getaddrinfo failureLuca Barbato2015-11-251-1/+3
|
* udp: Use the logging contextLuca Barbato2015-11-251-14/+28
|
* rtsp: Do not assume getnameinfo cannot failLuca Barbato2015-11-251-2/+8
| | | | And properly report the error when it happens.
* movenc-test: Fix integer overflowsMichael Niedermayer2015-11-242-5/+5
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* texturedsp: Explicitly cast RGBA parameters to unsignedVittorio Giovara2015-11-241-1/+4
| | | | | Silences warnings when using -Wshift-overflow (GCC 6+). Found-by: James Almer <jamrial@gmail.com>
* texturedspenc: Avoid using separate variablesVittorio Giovara2015-11-241-7/+3
| | | | Use the result directly, removing an unneeded cast.
* textureencdsp: cosmetics: Use normal static const for tablesVittorio Giovara2015-11-241-4/+4
|
* sgi: Correctly propagate meaningful error valuesVittorio Giovara2015-11-242-7/+8
|
* fate: Rework sgi tests into a suite and add the missing onesVittorio Giovara2015-11-247-28/+15
| | | | Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* sgienc: Support encoding high bit depth images with RLEVittorio Giovara2015-11-242-10/+12
| | | | Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* sgienc: Use a local RLE encoding functionVittorio Giovara2015-11-243-17/+54
| | | | | | SGI RLE encoding is slighlty different than the one provided by rle module (especially at high bit depth). The pixel count function however does not change, so it is simply made library-public.
* sgienc: Port to bytestream2Vittorio Giovara2015-11-241-31/+35
|
* sgienc: Do not end RLE lines with 0sVittorio Giovara2015-11-243-5/+4
| | | | | | | | This is never mentioned in the specifications, and decoders work just as fine without it. Update the fate references since the compressed file is smaller. Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* libvpxenc: remove some unused ctrl id mappingsJames Zern2015-11-231-12/+4
| | | | | | | | | VP8E_UPD_ENTROPY, VP8E_UPD_REFERENCE, VP8E_USE_REFERENCE were removed from libvpx and the remaining values were never used here Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: James Zern <jzern@google.com> Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* doc: Document better how to use MSYS2Luca Barbato2015-11-231-4/+27
|
* asfdec: handle the case when the stream index has an invalid value betterAlexandra Hájková2015-11-231-3/+17
| | | | | | | | | | The demuxer returned INVALIDDATA and failed to demux the remaining data when an invalid stream index was read, now it just skips the asf packet for the stream with an invalid stream index and continues demuxing. Reported-By: Hendrik Leppkes Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* dcadec: Do not check for overreads in auxiliary dataTim Walker2015-11-231-6/+6
| | | | | | | | The auxiliary data length field is not reliable, and incorrect overread errors could be returned for valid, real-world bitstreams. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* oggparsespeex: Fix unchecked mallocDerek Buitenhuis2015-11-231-0/+2
| | | | | Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com> Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* configure: Clearly state that MSYS native builds are discouragedLuca Barbato2015-11-211-0/+3
| | | | | | | | | MSYS, as per cygwin, by default uses a custom posix abstraction in the form of a "msys2.dll". Programs build that way are harder to distribute and use. MSYS2 provides alternate launcher scripts that provide a MINGW environment nearly out of box.
* lavc: Deprecate avctx.rtp_callback fieldVittorio Giovara2015-11-204-1/+23
| | | | | | | | | | | | | | | | | | | | | This function returns the encoded data of a frame, one slice at a time directly when that slice is encoded, instead of waiting for the full frame to be done. However this field has a debatable usefulness, since it looks like it is just a convoluted way to get data at lowest possible latency, or a somewhat hacky way to store h263 in RFC-2190 rtp encapsulation. Moreover when multi-threading is enabled (which is by default) the order of returned slices is not deterministic at all, making the use of this function not reliable at all (or at the very least, more complicated than it should be). So, for the reasons stated above, and being used by only a single encoder family (mpegvideo), this field is deemed unnecessary, overcomplicated, and not really belonging to libavcodec. Libavformat features a complete implementation of RFC-2190, for any other case. Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* doc/encoders: document the QSV option mappingsAnton Khirnov2015-11-201-0/+88
|
* qsvenc: expose additional encoding optionsAnton Khirnov2015-11-205-1/+97
|
* qsvenc: support more RC methodsAnton Khirnov2015-11-202-18/+127
|
* qsvenc: factor out common optionsAnton Khirnov2015-11-204-24/+13
|
* qsvenc: fix setting maxrate for VBRAnton Khirnov2015-11-201-1/+1
|
* qsvenc: print the actual video parameters used by MSDKAnton Khirnov2015-11-202-0/+266
|
* mpegvideo_enc: enable rtp_mode when multiple slices are usedAnton Khirnov2015-11-201-3/+7
| | | | | | | | | | Currently, multiple slices with just one thread produce corrupted output. Additionally, enable slice structured mode for h263(+) Bug-Id: 912 CC: libav-stabl@libav.org
* mpevideo_enc: disallow multiple slices for h261 and flvAnton Khirnov2015-11-201-0/+6
| | | | | | They do not work and produce corrupted output. CC: libav-stable@libav.org
* movenc: add fallback audio track tref supportJohn Stebbins2015-11-181-4/+15
| | | | | | | | | | | | | This feature allows making associations between audio tracks that apple players recognize. E.g. when an ac3 track has a tref that points to an aac track, devices that don't support ac3 will automatically fall back to the aac track. Apple used to *guess* these associations, but new products (AppleTV 4) no longer guess and this association can only be made explicitly now using the "fall" tref. Signed-off-by: Anton Khirnov <anton@khirnov.net>
* avcodec: Define side data type for fallback trackJohn Stebbins2015-11-183-1/+13
| | | | | | | | | This side data type is meant to be added to AVStream side data. A fallback track indicates an alternate track to use when the current track can not be decoded for some reason. e.g. no decoder available for codec. Signed-off-by: Anton Khirnov <anton@khirnov.net>
* avformat: expose av_stream_new_side_data helperJohn Stebbins2015-11-187-12/+19
| | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* lavf: document that passing valid timestamps to muxers is now mandatoryAnton Khirnov2015-11-181-8/+21
| | | | Also, extend the documentation about setting timestamps.
* dvdsubdec: Validate the RLE offsetsLuca Barbato2015-11-171-1/+5
| | | | CC: libav-stable@libav.org
* travis: Enable OSX integrationVittorio Giovara2015-11-171-0/+7
|
* flacenc: Clamp user-supplied min/max prediction ordersVittorio Giovara2015-11-161-6/+8
| | | | | | This mimics what the code does internally for default order values. Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* ffv1: Explicitly name the coder typeVittorio Giovara2015-11-164-29/+27
| | | | | | | | | | | | | | | | FFv1 uses two types of coders, golomb and range with two different tables. This is exposed this in a rather convoluted way, for example mentioning to set coder type 1 while initializing the variable 'ac' to 2, because encoder does not use range coder with default table. Appropriate internal coder type values have been added and used in any check rather than using raw numbers. Initialization of avctx.coder_type in ffv1dec is removed because this field is encoder only. An unneeded validation check in the encoder is dropped too. Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* hqx: correct type and size check of info_offsetAndreas Cadhalpun2015-11-161-2/+2
| | | | | | | | | It is used as size argument of ff_canopus_parse_info_tag, which uses it as size argument to bytestream2_init, which only supports sizes up to INT_MAX. Changing it's type to unsigned simplifies the check. Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
* dds: disable palette flag for compressed imagesAndreas Cadhalpun2015-11-141-0/+6
| | | | | | | | Having both is not valid and can cause a NULL pointer dereference of frame->data[1] later. Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com> Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>