summaryrefslogtreecommitdiff
path: root/libavcodec
Commit message (Collapse)AuthorAge
* avcodec/qpeg: Check side data size before useMichael Niedermayer2016-10-31
| | | | | | Fixes out of array read Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/qtrle: Check side data size before useMichael Niedermayer2016-10-31
| | | | | | Fixes out of array read Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/msrle: Check side data size before useMichael Niedermayer2016-10-31
| | | | | | Fixes out of array read Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/cuvid: Don't claim to decode h.263 (it doesn't)Philip Langdale2016-10-30
| | | | Turns out cuvid doesn't support h.263.
* interplayacm: validate number of channelsAndreas Cadhalpun2016-10-30
| | | | | | | | The number of channels is used as divisor in decode_frame, so it must not be zero to avoid SIGFPE crashes. Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
* interplayacm: check for too large bAndreas Cadhalpun2016-10-30
| | | | | | | This fixes out-of-bounds reads. Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
* avcodec/kmvc: Check side data size before useMichael Niedermayer2016-10-30
| | | | | | Fixes out of array read Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/idcinvideo: Check side data size before useMichael Niedermayer2016-10-30
| | | | | | Fixes out of array read Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/cinepak: Check side data size before useMichael Niedermayer2016-10-30
| | | | | | Fixes out of array read Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/8bps: Check side data size before useMichael Niedermayer2016-10-30
| | | | | | Fixes out of array read Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* doc: fix spelling errorsAndreas Cadhalpun2016-10-29
| | | | | Reviewed-by: Lou Logan <lou@lrcd.com> Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
* crystalhd: Reorder mspeg4 decoder after software decodersPhilip Langdale2016-10-28
| | | | | This avoids it getting picked by default, which is generally undesirable and can break test runs.
* apng: use side data to pass extradata to muxerAndreas Cadhalpun2016-10-28
| | | | | | | | This fixes creating apng files, which is broken since commit 5ef19590802f000299e418143fc2301e3f43affe. Reviewed-by: James Almer <jamrial@gmail.com> Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
* avcodec: remove missing incompatible_libav_abi referencesJames Almer2016-10-26
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* Bump minor versions after 3.2 branchpoint to seperate releaseMichael Niedermayer2016-10-26
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* Bump minor versions for 3.2Michael Niedermayer2016-10-26
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/dvdsubdec: Fix off by 1 errorMichael Niedermayer2016-10-26
| | | | | | | Fixes out of array read Found-by: Thomas Garnier using libFuzzer Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/dvdsubdec: Fix buf_size checkMichael Niedermayer2016-10-26
| | | | | | | Fixes out of array access Found-by: Thomas Garnier using libFuzzer Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* lavc/utvideoenc: Set bits_per_coded_sample for rgba.Carl Eugen Hoyos2016-10-25
| | | | | | | Allows to write correct value for biBitCount into BITMAPINFOHEADER. Before, ff_put_bmp_header() always wrote "24" as biBitCount for utvideo because bits_per_coded_sample was never set by the encoder.
* avcodec/interplayvideo: Check side data size before useMichael Niedermayer2016-10-25
| | | | | | | Fixes out of array read Found-by: Thomas Garnier using libFuzzer Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/ffv1enc: Fix storing RGB48 without explicitly set levelMichael Niedermayer2016-10-25
| | | | | | | | | the bps value is only stored with level >= 1, using rgb48 with level 0 requires the user app to keep track of the bps by external means, which does not always happen also we force level >= 1 for other 16bps formats, so this is consistent. Found-by: Jerome Martinez <jerome@mediaarea.net> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* vp9: change order of operations in adapt_prob().Ronald S. Bultje2016-10-24
| | | | | | | | | | | This is intended to workaround bug "665 Integer Divide Instruction May Cause Unpredictable Behavior" on some early AMD CPUs, which causes a div-by-zero in this codepath, such as reported in Mozilla bug #1293996. Note that this isn't guaranteed to fix the bug, since a compiler is free to reorder instructions that don't depend on each other. However, it appears to fix the bug in Firefox, and a similar patch was applied to libvpx also (see Chrome bug #599899).
* lavc/utils: avcodec_string: dump field order when knownRodger Combs2016-10-24
|
* lavc/h264_parser: export field order in more casesRodger Combs2016-10-24
|
* lavc/parser: export field order if not already setRodger Combs2016-10-24
| | | | Some codecs set this in the parser, but not the decoder
* avcodec/mips: loongson optimize mmi load and store operatorsZhou Xiaoyong2016-10-23
| | | | | | | | 1.MMI_ load/store macros are defined in libavutil/mips/mmiutils.h 2.Replace some unnecessary unaligned access with aligned operator 3.The MMI_ load/store is compatible with cpu loongson2e/2f which not support instructions start with gs Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/cuvid: Allow reinitialization of decoderPhilip Langdale2016-10-22
| | | | In practice, this works fine.
* avcodec/snowenc: Clear MMX state after edge drawing and picture encodeMichael Niedermayer2016-10-22
| | | | | | Fixes undefined behavior from calling libc allocation with unclean FPU state. Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/mpegvideo_enc: Add missing emms_c() to clear MMX state after SIMD useMichael Niedermayer2016-10-22
| | | | | | Fixes undefined behavior due to calling libc allocation with unclean FPU state Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/utils: Move emms_c() before memory allocation functions in ↵Michael Niedermayer2016-10-22
| | | | | | avcodec_encode_video2() Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/cavsdec: Clear MMX state after MB decode loopMichael Niedermayer2016-10-22
| | | | | | | The MMX state must be cleared between using MMX and using memory allocation thats basically the only location between the 2 Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/svq1enc: Clear MMX state after svq1_encode_plane()Michael Niedermayer2016-10-22
| | | | | | svq1_encode_plane() uses SIMD and we call libc memory allocation functions after it Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* lavc/libvpxenc: fix -auto-alt-ref option typeKagami Hiiragi2016-10-21
| | | | | | | | vp9_cx_iface actually allows values in range [0..2]. This fixes ticket #5894. Signed-off-by: Kagami Hiiragi <kagami@genshiken.org> Signed-off-by: James Zern <jzern@google.com>
* doc: fix spelling errorsAndreas Cadhalpun2016-10-21
| | | | | | | | Thanks to Mathieu Malaterre <malat@debian.org> for reporting the Que/Queue typo. (https://bugs.debian.org/839542) Reviewed-by: Lou Logan <lou@lrcd.com> Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
* lavc: add SCTE-35 CUI codec IDCarlos Fernandez2016-10-21
| | | | | | Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: Carlos Fernandez <carlos@ccextractor.org> Signed-off-by: Marton Balint <cus@passwd.hu>
* mpeg12dec: unref discarded picture from extradataAndreas Cadhalpun2016-10-21
| | | | | | | | Otherwise another frame gets referenced into picture, triggering an assert (from commit 13aae8) in av_frame_ref. Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
* cavsdec: unref frame before referencing againAndreas Cadhalpun2016-10-21
| | | | | | | | This fixes asserts (from commit 13aae8) in av_frame_ref and av_frame_move_ref. Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
* avcodec/vda: define av_vda_default_init2 when CONFIG_H264_VDA_HWACCEL equ 0Steven Liu2016-10-21
| | | | | | | | | | | | | | on OSX: ../configure --disable-everything --enable-demuxer=hls make error message: Undefined symbols for architecture x86_64: "_av_vda_default_init2", referenced from:_videotoolbox_init in ffmpeg_videotoolbox.o so add av_vda_default_init2 when CONFIG_H264_VDA_HWACCEL=0 Signed-off-by: Steven Liu <lq@chinaffmpeg.org> Reviewed-by: wm4 <nfxjfg@googlemail.com> Reviewed-by: Xidorn Quan <quanxunzhen@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/mpegvideo_enc: Clear mmx state in ff_mpv_reallocate_putbitbuffer()Michael Niedermayer2016-10-21
| | | | | | | This function must be called from the mb or slice encoding loop and MMX state may not be clean there Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/utils: Clear MMX state before returning from avcodec_default_execute*()Michael Niedermayer2016-10-21
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/dnxhdenc: Move allocation out of radix_sort()Michael Niedermayer2016-10-21
| | | | | | Its slow, its not checked, FPU state is not clean either currently there Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* dxva2: fix surface selection when compiled with both d3d11va and dxva2Hendrik Leppkes2016-10-20
| | | | Fixes a regression introduced in 9b462a0b9
* lavc/sheervideo: Increase av_get_codec_tag_string() input buffer size.Carl Eugen Hoyos2016-10-20
| | | | A size of 32 is typically used.
* avcodec/nvenc_hevc: Added missing option -temporal_aqSven C. Dack2016-10-19
| | | | | | The option is present in h264_nvenc, but was missing from hevc_nvenc. Signed-off-by: Timo Rothenpieler <timo@rothenpieler.org>
* avcodec/nvenc: add test for Temporal AQ supportSven C. Dack2016-10-19
| | | | | | Adds a check to see if the hardware supports temporal aq. Signed-off-by: Timo Rothenpieler <timo@rothenpieler.org>
* lavc/mediacodec: use more meaningful filenamesMatthieu Bouron2016-10-19
| | | | | | Adds the following changes: * mediacodecdec.{c,h} -> mediacodecdec_common.{c,h} * mediacodecdec_h2645.c -> mediacodecdec.c
* lavc: add mpeg4 mediacodec decoderMatthieu Bouron2016-10-19
|
* lavc: add vp8/vp9 mediacodec decodersMatthieu Bouron2016-10-19
|
* lavc/mediacodec_wrapper: do not discard codecs reporting they do not support ↵Matthieu Bouron2016-10-19
| | | | | | | any profile Depending on the device, some (VP8/VP9/...) decoders report that they do not support any profiles.
* lavc/videotoolboxenc: skip SEI allocation when side data is not presentAman Gupta2016-10-18
| | | | Signed-off-by: Rick Kern <kernrj@gmail.com>