summaryrefslogtreecommitdiff
path: root/libavcodec
Commit message (Collapse)AuthorAge
* texturedsp: Explicitly cast RGBA parameters to unsignedVittorio Giovara2015-11-24
| | | | | Silences warnings when using -Wshift-overflow (GCC 6+). Found-by: James Almer <jamrial@gmail.com>
* texturedspenc: Avoid using separate variablesVittorio Giovara2015-11-24
| | | | Use the result directly, removing an unneeded cast.
* textureencdsp: cosmetics: Use normal static const for tablesVittorio Giovara2015-11-24
|
* sgi: Correctly propagate meaningful error valuesVittorio Giovara2015-11-24
|
* sgienc: Support encoding high bit depth images with RLEVittorio Giovara2015-11-24
| | | | Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* sgienc: Use a local RLE encoding functionVittorio Giovara2015-11-24
| | | | | | 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-24
|
* sgienc: Do not end RLE lines with 0sVittorio Giovara2015-11-24
| | | | | | | | 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-23
| | | | | | | | | 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>
* dcadec: Do not check for overreads in auxiliary dataTim Walker2015-11-23
| | | | | | | | 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>
* lavc: Deprecate avctx.rtp_callback fieldVittorio Giovara2015-11-20
| | | | | | | | | | | | | | | | | | | | | 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>
* qsvenc: expose additional encoding optionsAnton Khirnov2015-11-20
|
* qsvenc: support more RC methodsAnton Khirnov2015-11-20
|
* qsvenc: factor out common optionsAnton Khirnov2015-11-20
|
* qsvenc: fix setting maxrate for VBRAnton Khirnov2015-11-20
|
* qsvenc: print the actual video parameters used by MSDKAnton Khirnov2015-11-20
|
* mpegvideo_enc: enable rtp_mode when multiple slices are usedAnton Khirnov2015-11-20
| | | | | | | | | | 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-20
| | | | | | They do not work and produce corrupted output. CC: libav-stable@libav.org
* avcodec: Define side data type for fallback trackJohn Stebbins2015-11-18
| | | | | | | | | 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>
* dvdsubdec: Validate the RLE offsetsLuca Barbato2015-11-17
| | | | CC: libav-stable@libav.org
* flacenc: Clamp user-supplied min/max prediction ordersVittorio Giovara2015-11-16
| | | | | | 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-16
| | | | | | | | | | | | | | | | 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-16
| | | | | | | | | 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-14
| | | | | | | | 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>
* dds: add missing newline to log messagesAndreas Cadhalpun2015-11-12
| | | | Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
* dds: validate compressed source buffer sizeAndreas Cadhalpun2015-11-12
| | | | | | | A too small buffer will cause segfaults somewhere below decompress_texture_thread. Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
* dds: validate source buffer size before copyingAndreas Cadhalpun2015-11-12
| | | | | | If it is too small av_image_copy_plane segfaults. Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
* lavc: Add missing mem.h header to libxvid and screenpressoVittorio Giovara2015-11-12
|
* avcodec: fix doxy placementAnton Khirnov2015-11-09
|
* libopenh264enc: Set AVOption data typeMichael Niedermayer2015-11-06
| | | | Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* vdpau: Remove a spurious CONFIG_H263_VDPAU_HWACCELMichael Niedermayer2015-11-06
| | | | | | | | | Fixes libavcodec/vdpau.c:282:5: warning: "CONFIG_H263_VDPAU_HWACCEL" is not defined [-Wundef] Removed in d35d0c723e3c8fc8cde76bf677f67928f5e179a8. Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* flashsv: Initialize the block arrayLuca Barbato2015-11-02
| | | | | | | | | Otherwise flashsv2_prime could be fed random data. Bug-Id: 908 CC: libav-stable@libav.org Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* truemotion2: Fix the buffer checkLuca Barbato2015-11-02
| | | | | | | | | The variable skip contains the expected size in bytes. Bug-Id: 906 CC: libav-stable@libav.org Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* mimic: Always return on failureLuca Barbato2015-11-02
| | | | | | | Bug-Id: 905 CC: libav-stable@libav.org Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* rpza: Check the blocks left before processing oneLuca Barbato2015-11-02
| | | | | | | | Bug-Id: 903 CC: libav-stable@libav.org Reported-By: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* lagarith: Correctly compute hash_shiftLuca Barbato2015-11-02
| | | | | | | | | All the values are unsigned. Bug-Id: 907 CC: libav-stable@libav.org Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* h264_parser: Rename close() to h264_close()Diego Biurrun2015-11-01
| | | | At least on AIX it conflicts with the close() libc function from unistd.h.
* vdpau: remove dysfunctional H.263 supportRémi Denis-Courmont2015-10-30
| | | | | | The VDPAU API never explicitly supported H.263 in the first place. Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* h264: Print the complete user messageVittorio Giovara2015-10-30
| | | | | | | Previously the message was cut off at 256th byte. This will allow dumping the complete x264 encode info when needed. Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* h264: Print user data SEI under normal debug verbosityVittorio Giovara2015-10-30
| | | | | | Drop the need of setting -debug bugs since it's not a bug, and the message is already under a AV_LOG_DEBUG log level. Instead only print it when there is an actual string in it.
* png: read and write stereo3d frame side data informationKirill Gavrilov2015-10-30
| | | | | | | Use optional sTER chunk defining side-by-side stereo pair within "Extensions to the PNG 1.2 Specification", version 1.3.0. Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* libopenh264enc: Count and warn about the number of skipped framesMartin Storsjö2015-10-28
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* libopenh264enc: Add an option for controlling the frame skippingMartin Storsjö2015-10-28
| | | | | | | This allows enabling the frame skipping, which is required for the encoder to properly hit the target bitrate. Signed-off-by: Martin Storsjö <martin@martin.st>
* opus: Do not call vector_fmul_scalar on zero samplesKieran Kunhya2015-10-28
| | | | | | The x86 variant of this function crashes in that specific case. CC: libav-devel@libav.org
* opus: Buffer the samples from the correct offsetMichael Niedermayer2015-10-28
| | | | | | | | | | | When not all the opus stream have the same amount of decoded samples process the least amount and store what is left from the other streams. Bug-Id: 909 CC: libav-stable@libav.org Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* avpicture: Deprecate the single fieldsLuca Barbato2015-10-27
| | | | Silence pointless warnings from gcc.
* avpacket: Provide an alloc and a free function for the structLuca Barbato2015-10-26
| | | | | Pave the way for having the size of the AVPacket struct not part of the ABI.
* avpacket: Deprecate av_dup_packetLuca Barbato2015-10-26
| | | | | As documented, `av_dup_packet` is broken by design, `av_packet_ref` matches the AVFrame ref-counted API and can be safely used instead.
* avpacket: Replace av_free_packet with av_packet_unrefLuca Barbato2015-10-26
| | | | | | | `av_packet_unref` matches the AVFrame ref-counted API and can be used as a drop in replacement. Deprecate `av_free_packet`.
* roqvideodec: use av_frame_copyHendrik Leppkes2015-10-26
| | | | | CC: libav-stable@libav.org Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>