summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* avcodec/aacsbr_fixed: Fix integer overflow in sbr_hf_assemble()Michael Niedermayer2018-04-071-1/+1
| | | | | | | | | | Fixes: runtime error: signed integer overflow: 2052929346 + 204817098 cannot be represented in type 'int' This was missed in b1bef755f617af9685b592d866b3eb7f3c4b02b1 Fixes: 5275/clusterfuzz-testcase-minimized-5367635958038528 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* lavc/clearvideo: Allow decoding without extradata.Carl Eugen Hoyos2018-04-071-0/+2
|
* libavcodec/rv34: error out earlier on missing referencesMichael Niedermayer2018-04-071-3/+3
| | | | | | | | Fixes visual corruption on seeking Fixes: downloadTest_clip_24M.rmvb Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/get_bits: Document skip_bits_long()Michael Niedermayer2018-04-071-0/+7
| | | | | Found-by: Kieran Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avformat/matroskadec: reference the existing data buffer when creating packetsJames Almer2018-04-061-18/+27
| | | | | | | | | | Newly allocated data buffers (wavpack, prores, compressed buffers) are padded to meet the requirements of AVPacket. About 10x speed up in matroska_parse_frame(). Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: James Almer <jamrial@gmail.com>
* avformat/matroskadec: factor the prores packet parsing code outJames Almer2018-04-061-12/+38
| | | | | | | | Simplifies code in matroska_parse_frame(). This is in preparation for the following patch. Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: James Almer <jamrial@gmail.com>
* avformat/matroskadec: use refcounted buffers in EbmlBinJames Almer2018-04-061-13/+31
| | | | | | | | | Data in EbmlBin objects is never changed after being read from the input file (save for two specific cases with encoded CodePrivate), so using AVBufferRef we can prevent unnecessary copy of data by instead creating new references to said constant data. Signed-off-by: James Almer <jamrial@gmail.com>
* swresample/swresample: Fix for seg fault in swr_convert_internal() -> ↵Hendrik Schreiber2018-04-071-1/+1
| | | | | | | | | sum2_float during dithering. Removed +len1 in call to s->mix_2_1_f() as I found no logical explanation for it. After removal, problem was gone. Signed-off-by: Hendrik Schreiber <hs@tagtraum.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* doc/developer: remove merge request method of contributingLou Logan2018-04-061-4/+2
| | | | | | | | | | This seems to confuse Github users into thinking that we may accept pull requests. We do not accept pull requests. Sending patches to the ffmpeg-devel mailing list is our preferred method for users to contribute code. Signed-off-by: Lou Logan <lou@lrcd.com>
* doc/filters: some more details and modified example to zmq/azmqBela Bodecs2018-04-051-6/+22
| | | | | | | | | Info about default value of bind_address option and its abbreviated version (b). Example modified to have named instanced filter and to show its use. Signed-off-by: Bela Bodecs <bodecsb@vivanet.hu> Signed-off-by: Lou Logan <lou@lrcd.com>
* lavf/amr: Stricter heuristic for auto-detection.Carl Eugen Hoyos2018-04-062-5/+7
| | | | Fixes ticket #7125.
* lavfi,lavd: add gitignore for generated static component listsJosh de Kock2018-04-052-0/+3
| | | | Signed-off-by: Josh de Kock <josh@itanimul.li>
* Add Sega FILM muxerMisty De Meo2018-04-056-2/+403
| | | | Signed-off-by: Josh de Kock <josh@itanimul.li>
* avcodec/prores_ks : do not call estimate_alpha at each quantification stepMartin Vignali2018-04-051-12/+8
| | | | | | also remove unused arg in estimate_alpha_plane Improve quality of Prores 4444 encoding
* checkasm/vf_blend : add test for 16 bit version ofMartin Vignali2018-04-051-0/+5
| | | | | | | | grainextract grainmerge average extremity negation
* avfilter/x86/vf_blend : add SIMD for 16 bit version ofMartin Vignali2018-04-052-60/+128
| | | | | | | | grainextract grainmerge average extremity negation
* avfilter/x86/vf_blend : reorganize DIFFERENCE macro to reduce line ↵Martin Vignali2018-04-051-22/+16
| | | | duplication between 8bit and 16 bit version
* avcodec/openh264enc.c: generate IDR frame in response to I frame pict_typeValery Kot2018-04-051-0/+4
| | | | Signed-off-by: Valery Kot <valery.kot@gmail.com>
* avformat/mov: Fix parsing of tfdt when using sample descriptors.Jacob Trimble2018-04-051-1/+1
| | | | | Signed-off-by: Jacob Trimble <modmaker@google.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* doc/developer: update link to "sign-off" infoLou Logan2018-04-051-3/+3
| | | | | | Found by Hendrik Schreiber. Signed-off-by: Lou Logan <lou@lrcd.com>
* avcodec/decode: fix warning when decoding pseudo paletted formatswm42018-04-051-0/+2
| | | | | | The pseudo palette allocation is optional now. But if it's still allocated (like the internal get_buffer2 implementation does, for compatibility), it shouldn't print a warning.
* avformat/movenc: add rtp_hinting_needed() helper functionTimo Teräs2018-04-041-18/+12
| | | | | | | | This is shared test and this simplifies code a bit. Follow up commit will have additional tests for this function. Signed-off-by: Timo Teräs <timo.teras@iki.fi> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* ffmpeg: allow setting attached_pic dispositionTimo Teräs2018-04-041-0/+1
| | | | | | | | This is used to signal that image should be stored in metadata as cover image. Signed-off-by: Timo Teräs <timo.teras@iki.fi> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avformat/matroskadec: address some more missing AVPacket freesJames Almer2018-04-041-13/+4
| | | | | | Fixes memleaks. Signed-off-by: James Almer <jamrial@gmail.com>
* avcodec/mpeg4videodec: unbreak multithreading decodingJames Almer2018-04-041-4/+6
| | | | | | Should fix double free related crashes. Signed-off-by: James Almer <jamrial@gmail.com>
* avformat/matroskadec: address a missing AVPacket freeJames Almer2018-04-041-11/+2
| | | | | | Fixes memleaks. Signed-off-by: James Almer <jamrial@gmail.com>
* avcodec/libaomdec: fix broken pix_fmt changes from the previous commitJames Almer2018-04-041-6/+6
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* avcodec/mpeg4videodec: free studio profile VLCs when closing the decoderJames Almer2018-04-041-1/+15
| | | | | | Fixes memleaks. Signed-off-by: James Almer <jamrial@gmail.com>
* avcodec/clearvideo: fix mixed code and declarationsJames Almer2018-04-041-4/+5
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* avformat/mp3enc: use AVPacketList helper functions to queue packetsJames Almer2018-04-041-16/+7
| | | | | | | Simplifies code. Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: James Almer <jamrial@gmail.com>
* avformat/ttaenc: use AVPacketList helper functions to queue packetsJames Almer2018-04-041-20/+8
| | | | | | Simplifies code. Signed-off-by: James Almer <jamrial@gmail.com>
* avformat/matroskadec: use AVPacketList to queue packetsJames Almer2018-04-041-39/+23
| | | | | | It's more robust and efficient. Signed-off-by: James Almer <jamrial@gmail.com>
* avformat/utils: optimize ff_packet_list_free()James Almer2018-04-041-3/+6
| | | | | | Don't constantly overwrite the list's head pointer. Signed-off-by: James Almer <jamrial@gmail.com>
* avformat/utils: make AVPacketList helper functions sharedJames Almer2018-04-042-24/+72
| | | | | | Based on a patch by Luca Barbato. Signed-off-by: James Almer <jamrial@gmail.com>
* lavf/hls: Remove the dead code in parse_playlist()Jun Zhao2018-04-041-7/+0
| | | | | Signed-off-by: Jun Zhao <mypopydev@gmail.com> Reviewed-by: Steven Liu <lq@onvideo.cn>
* avcodec/sheervideo: add missing wrappers to sheervideodata.hJames Almer2018-04-031-0/+4
| | | | | | Fixes make fate-source Signed-off-by: James Almer <jamrial@gmail.com>
* avcodec/clearvideo: add missing wrappers to clearvideodata.hJames Almer2018-04-031-1/+4
| | | | | | Fixes make fate-source Signed-off-by: James Almer <jamrial@gmail.com>
* avcodec/libaomdec: add support for monochrome filesJames Almer2018-04-031-4/+8
| | | | | | | All such files are signaled as I42016, as there's no monochrome value in aom_img_fmt_t. Signed-off-by: James Almer <jamrial@gmail.com>
* avcodec/libaomdec: remove duplicate codeJames Almer2018-04-031-11/+2
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* lavc/cfhd: fix distortion of lowest 8 lines when height is not multiple of 16Gagandeep Singh2018-04-032-12/+13
| | | | Also update fate reference. Fixes ticket #6675.
* avutil/pixdesc: deprecate AV_PIX_FMT_FLAG_PSEUDOPALwm42018-04-0319-34/+67
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | PSEUDOPAL pixel formats are not paletted, but carried a palette with the intention of allowing code to treat unpaletted formats as paletted. The palette simply mapped the byte values to the resulting RGB values, making it some sort of LUT for RGB conversion. It was used for 1 byte formats only: RGB4_BYTE, BGR4_BYTE, RGB8, BGR8, GRAY8. The first 4 are awfully obscure, used only by some ancient bitmap formats. The last one, GRAY8, is more common, but its treatment is grossly incorrect. It considers full range GRAY8 only, so GRAY8 coming from typical Y video planes was not mapped to the correct RGB values. This cannot be fixed, because AVFrame.color_range can be freely changed at runtime, and there is nothing to ensure the pseudo palette is updated. Also, nothing actually used the PSEUDOPAL palette data, except xwdenc (trivially changed in the previous commit). All other code had to treat it as a special case, just to ignore or to propagate palette data. In conclusion, this was just a very strange old mechnaism that has no real justification to exist anymore (although it may have been nice and useful in the past). Now it's an artifact that makes the API harder to use: API users who allocate their own pixel data have to be aware that they need to allocate the palette, or FFmpeg will crash on them in _some_ situations. On top of this, there was no API to allocate the pseuo palette outside of av_frame_get_buffer(). This patch not only deprecates AV_PIX_FMT_FLAG_PSEUDOPAL, but also makes the pseudo palette optional. Nothing accesses it anymore, though if it's set, it's propagated. It's still allocated and initialized for compatibility with API users that rely on this feature. But new API users do not need to allocate it. This was an explicit goal of this patch. Most changes replace AV_PIX_FMT_FLAG_PSEUDOPAL with FF_PSEUDOPAL. I first tried #ifdefing all code, but it was a mess. The FF_PSEUDOPAL macro reduces the mess, and still allows defining FF_API_PSEUDOPAL to 0. Passes FATE with FF_API_PSEUDOPAL enabled and disabled. In addition, FATE passes with FF_API_PSEUDOPAL set to 1, but with allocation functions manually changed to not allocating a palette.
* avcodec/xwdenc: do not rely on AV_PIX_FMT_FLAG_PSEUDOPAL paletteswm42018-04-031-1/+8
| | | | | | | | This is the only code I found within FFmpeg that still inherently requires AV_PIX_FMT_FLAG_PSEUDOPAL. It's easily changed not to require it. Preparation for the next patch.
* avcodec/sheervideo: move tables to own headerPaul B Mahol2018-04-032-1070/+1094
| | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* avcodec/clearvideo: add inter-frame decodingPaul B Mahol2018-04-032-105/+2443
| | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* avcodec/imgconvert: fix possible null pointer dereferenceSimon Thelen2018-04-031-2/+3
| | | | regression since 354b26a3945eadd4ed8fcd801dfefad2566241de
* fftools/cmdutils: add support for level flag in loglevel option parserTobias Rapp2018-04-031-18/+47
| | | | | | | | | | Allows to manage the AV_LOG_PRINT_LEVEL flag as a prefix to the loglevel option value, similar to the existing AV_LOG_SKIP_REPEATE flag. Adds support for setting flags relative to the existing value by using a +/- prefix. Previous version reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: Tobias Rapp <t.rapp@noa-archive.com>
* avcodec/aacdec_fixed: Fix integer overflow in apply_independent_coupling_fixed()Michael Niedermayer2018-04-021-1/+1
| | | | | | | | I was not able to reproduce this, this fix is based on just the fuzzer log. Fixes: 4959/clusterfuzz-testcase-minimized-6035350934781952 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/cscd: Error out when LZ* decompression failsMichael Niedermayer2018-04-021-2/+6
| | | | | | | | Fixes: Timeout Fixes: 6304/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_CSCD_fuzzer-5754772461191168 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avformat/options_table: Change the seek2any location in opt table.Jun Zhao2018-04-021-1/+1
| | | | | | | | Change the seek2any location in avformat_options to make code more readable. Signed-off-by: Jun Zhao <mypopydev@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/libaomdec: remove references to gbrp pixfmtJames Almer2018-04-021-8/+4
| | | | | | Support for this needs testing, so remove for now. Signed-off-by: James Almer <jamrial@gmail.com>
OpenPOWER on IntegriCloud