summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* MAINTAINERS: add myself to MIPS sectionShiyou Yin2018-08-081-1/+1
| | | | | | Signed-off-by: Shiyou Yin <yinshiyou-hf@loongson.cn> Reviewed-by: Manojkumar Bhosale <Manojkumar.Bhosale@imgtec.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* ffmpeg: simplify refcounting packets for the muxing queueJames Almer2018-08-071-2/+2
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* avs2: correct avs2 descriptionhwren2018-08-085-5/+5
| | | | | Signed-off-by: hwren <hwrenx@126.com> Signed-off-by: Gyan Doshi <ffmpeg@gyani.pro>
* lavc/libx264: Support monochrome encoding.Carl Eugen Hoyos2018-08-072-1/+11
|
* libavfilter: Fixes warnings for unused variables in dnn_srcnn.h, ↵Sergey Lavrushkin2018-08-073-74/+64
| | | | | | dnn_espcn.h, dnn_backend_tf.c. Signed-off-by: Pedro Arthur <bygrandao@gmail.com>
* libavfilter: Code style fixes for pointers in DNN module and sr filter.Sergey Lavrushkin2018-08-079-150/+150
| | | | Signed-off-by: Pedro Arthur <bygrandao@gmail.com>
* libavfilter: Adds on the fly generation of default DNN models for tensorflow ↵Sergey Lavrushkin2018-08-075-17559/+7742
| | | | | | backend instead of storing binary model. Signed-off-by: Pedro Arthur <bygrandao@gmail.com>
* avformat/flvdec: add flv_full_metadata option into flvdecSteven Liu2018-08-072-2/+7
| | | | | | output all the metadata context when use this option. Signed-off-by: Steven Liu <lq@chinaffmpeg.org>
* avformat/flvdec: reindent code for previous commitSteven Liu2018-08-071-11/+11
| | | | Signed-off-by: Steven Liu <lq@chinaffmpeg.org>
* avformat/flvdec: add flv_ignore_prevtag option into flvdecSteven Liu2018-08-072-0/+7
| | | | Signed-off-by: Steven Liu <lq@chinaffmpeg.org>
* avformat/dashdec: remove unused functions and process codeSteven Liu2018-08-071-38/+8
| | | | | | Based on a patch for hls by Richard Shaffer Signed-off-by: Steven Liu <lq@chinaffmpeg.org>
* avformat/dashdec: Fix memleak when resolve_content_pathJacek Jendrzej2018-08-071-1/+4
| | | | | | | | Can be reproduced with: valgrind --leak-check=full -v ffmpeg -i http://yt-dash-mse-test.commondatastorage.googleapis.com/media/motion-20120802-manifest.mpd Reviewed-by: Steven Liu <lq@onvideo.cn> Signed-off-by: Steven Liu <lq@chinaffmpeg.org>
* avformat/dashdec: fix for ticket #7336Jacek Jendrzej2018-08-071-2/+4
| | | | | | | fix for ticket #7336 Reviewed-by: Steven Liu <lq@onvideo.cn> Signed-off-by: Steven Liu <lq@chinaffmpeg.org>
* fftools/qsv: add extra_hw_frames supportZhong Li2018-08-071-1/+1
| | | | | | | | | | Currently extra_hw_frames can't be applied to qsv since it doesn't call function avcodec_get_hw_frames_parameters(). Give an option to fix ticket #7261 though it is not a perfect soultion (allocate the minimum pool size internally and automatically). Signed-off-by: Zhong Li <zhong.li@intel.com>
* lavc/qsvenc: expose qp of encoded framesZhong Li2018-08-073-0/+50
| | | | | | | Requirement from ticket #7254. Currently only H264 supported by MSDK. Signed-off-by: Zhong Li <zhong.li@intel.com>
* vf_tonemap: Update hdr metadata with the new peak valueVittorio Giovara2018-08-061-0/+2
| | | | | Less effective than the approach in vf_tonemap_opencl because there is no peak detection, but it's still a good idea to implement this.
* vf_tonemap_opencl: Move update_metadata() to a shared fileVittorio Giovara2018-08-063-18/+19
|
* vf_tonemap[_opencl]: Move determine_signal_peak() to a shared fileVittorio Giovara2018-08-065-63/+40
| | | | The two functions are identical. Use the shared LumaCoeffients type too.
* vf_tonemap: Fix logic for detecting the maximum peak of untagged sourcesVittorio Giovara2018-08-061-3/+3
| | | | | | | | | | When there is no metadata attached to a frame, take into account both the PQ and HLG transfers, and change the HLG default value to 10: the value of 12 is the maximum range in scene referred light, but the reference OOTF maps this from 0 to 1000 cd/m² on the ideal HLG monitor. This matches what vf_tonemap_opencl does.
* avcodec/libaomenc: correct range for cpu-usedGyan Doshi2018-08-061-1/+1
| | | | | | Valid range is [0,8] as stated in aom.git:aom/aomcx.h Fixes #7343
* avcodec/mediacodecdec: fix spurious newline in trace loggingAman Gupta2018-08-051-1/+1
| | | | Signed-off-by: Aman Gupta <aman@tmm1.net>
* avcodec/pnm_parser: Avoid reparsing failed data.Michael Niedermayer2018-08-041-2/+3
| | | | | | | | | | | | | | Alternatively the parser could be re implemented / redesigned so as to better and more efficiently find frame boundaries Fixes: Timeout Fixes: 9210/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_PBM_fuzzer-4770771833454592 Fixes: 9214/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_PPM_fuzzer-5741633353023488 Fixes: 9219/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_PGM_fuzzer-6249230237696000 Fixes: 9550/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_PAM_fuzzer-5312669836902400 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/simple_idct_template: Fix several integer overflowsMichael Niedermayer2018-08-041-24/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes: simple_idct_template.c:184:30: runtime error: signed integer overflow: -1065517056 - 1392182838 cannot be represented in type 'int' Fixes: simple_idct_template.c:269:21: runtime error: signed integer overflow: 16384 * 259254 cannot be represented in type 'int' Fixes: simple_idct_template.c:164:17: runtime error: signed integer overflow: 21407 * 210162 cannot be represented in type 'int' Fixes: simple_idct_template.c:167:17: runtime error: signed integer overflow: 21407 * 210162 cannot be represented in type 'int' Fixes: simple_idct_template.c:169:19: runtime error: signed integer overflow: 22725 * 259190 cannot be represented in type 'int' Fixes: simple_idct_template.c:171:19: runtime error: signed integer overflow: 19265 * 259190 cannot be represented in type 'int' Fixes: simple_idct_template.c:173:19: runtime error: signed integer overflow: 12873 * 259190 cannot be represented in type 'int' Fixes: simple_idct_template.c:183:28: runtime error: signed integer overflow: 1860878336 + 585177665 cannot be represented in type 'int' Fixes: simple_idct_template.c:159:17: runtime error: signed integer overflow: 16384 * 189520 cannot be represented in type 'int' Fixes: simple_idct_template.c:170:22: runtime error: signed integer overflow: 19265 * 130147 cannot be represented in type 'int' Fixes: simple_idct_template.c:174:23: runtime error: signed integer overflow: -22725 * 130147 cannot be represented in type 'int' Fixes: simple_idct_template.c:183:20: runtime error: signed integer overflow: 16384 * -175206 cannot be represented in type 'int' Fixes: simple_idct_template.c:184:22: runtime error: signed integer overflow: -16384 * -175206 cannot be represented in type 'int' Fixes: simple_idct_template.c:185:22: runtime error: signed integer overflow: -16384 * -175206 cannot be represented in type 'int' Fixes: simple_idct_template.c:186:20: runtime error: signed integer overflow: 16384 * -175206 cannot be represented in type 'int' Fixes: simple_idct_template.c:195:26: runtime error: signed integer overflow: 19265 * 150747 cannot be represented in type 'int' Fixes: simple_idct_template.c:198:27: runtime error: signed integer overflow: -22725 * 150747 cannot be represented in type 'int' Fixes: simple_idct_template.c:184:37: runtime error: signed integer overflow: 21407 * -171941 cannot be represented in type 'int' Fixes: simple_idct_template.c:185:37: runtime error: signed integer overflow: 21407 * -171941 cannot be represented in type 'int' Fixes: simple_idct_template.c:192:27: runtime error: signed integer overflow: -12873 * 206341 cannot be represented in type 'int' Fixes: simple_idct_template.c:185:30: runtime error: signed integer overflow: 1196441600 + 1703756981 cannot be represented in type 'int' Fixes: simple_idct_template.c:176:23: runtime error: signed integer overflow: -12873 * 168461 cannot be represented in type 'int' Fixes: simple_idct_template.c:191:27: runtime error: signed integer overflow: -22725 * -140062 cannot be represented in type 'int' Fixes: simple_idct_template.c:197:26: runtime error: signed integer overflow: 19265 * -140062 cannot be represented in type 'int' Fixes: simple_idct_template.c:183:34: runtime error: signed integer overflow: 8867 * -243046 cannot be represented in type 'int' Fixes: simple_idct_template.c:186:34: runtime error: signed integer overflow: 8867 * -243046 cannot be represented in type 'int' Fixes: simple_idct_template.c:186:28: runtime error: signed integer overflow: -816234496 - 2139878414 cannot be represented in type 'int' Fixes: simple_idct_template.c:188:26: runtime error: signed integer overflow: 12873 * -239872 cannot be represented in type 'int' Fixes: simple_idct_template.c:165:16: runtime error: signed integer overflow: 8867 * -260084 cannot be represented in type 'int' Fixes: simple_idct_template.c:166:16: runtime error: signed integer overflow: 8867 * -260084 cannot be represented in type 'int' Fixes: 9135/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_MPEG4_fuzzer-6324422955761664 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/aacdec_template: Check for duplicate elementsMichael Niedermayer2018-08-041-0/+9
| | | | | | | | Fixes: Timeout Fixes: 9552/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_AAC_FIXED_fuzzer-6027842339995648 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/aacpsdsp_template: Fix integer overflow in ps_stereo_interpolate_c()Michael Niedermayer2018-08-041-4/+4
| | | | | | | | Fixes: signed integer overflow: -1813244069 + -1407981383 cannot be represented in type 'int' Fixes: 8823/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_AAC_FIXED_fuzzer-5643295618236416 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avformat/flvenc: Check audio packet sizeMichael Niedermayer2018-08-041-0/+5
| | | | | | | | Fixes: Assertion failure Fixes: assert_flvenc.c:941_1.swf Found-by: #CHEN HONGXU# <HCHEN017@e.ntu.edu.sg> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/mediacodecdec: fix SEGV on modern nvidia decodersAman Gupta2018-08-031-2/+3
| | | | | | | | | | | | | | | | | | | | This code came originally from gstreamer, where it was added in [1] as a work-around for the Tegra 3. (The alignment was changed in [2] as a response to [3], from 32-bit to 16-bit). gstreamer only used this workaround in the case where the decoder didn't return a slice-height property, but when the code was copied into avcodec the conditional got lost. This commit restores the guard and prefers the slice-height from the decoder when it is available. This fixes segfaults decoding 1920x1080 h264 and mpeg2 videos on the NVidia SHIELD after upgrading to Android Oreo. [1] https://github.com/GStreamer/gst-plugins-bad/commit/a870e6a5c30dd85240fe75c7409cc1cf1b86541d [2] https://github.com/GStreamer/gst-plugins-bad/commit/21ff3ae0b0127bd82951d278ca24f2d54133b7cd [3] https://bugzilla.gnome.org/show_bug.cgi?id=748867 Signed-off-by: Aman Gupta <aman@tmm1.net>
* lavc/svq3: Fix regression decoding some files.Nikolas Bowe2018-08-031-5/+4
| | | | | | | | | | | Fixes some SVQ3 encoded files which fail to decode correctly after 6d6faa2a2d. These files exhibit lots of artifacts and logs show "Media key encryption is not implemented". However they decode without artifacts before 6d6faa2a2d. The attatched patch allows these files to successfully decode, but also reject media key files. Tested on the files in #6094 and http://samples.mplayerhq.hu/V-codecs/SVQ3/Vertical400kbit.sorenson3.mov Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/mlp_parser: Check if synccode is within bufferMichael Niedermayer2018-08-031-1/+1
| | | | | | | | Fixes: undefined shift Fixes: 9216/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_TRUEHD_fuzzer-6281404575907840 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/qtrle: Check remaining bytestream in qtrle_decode_XYbpp()Michael Niedermayer2018-08-031-0/+10
| | | | | | | | Fixes: Timeout Fixes: 9213/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_QTRLE_fuzzer-5649753332252672 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avformat/matroskaenc: filter and reorder AV1 OBUsJames Almer2018-08-021-0/+6
| | | | | | | Make sure to not write forbidden OBUs to CodecPrivate, and do the same with unnecessary OBUs for packets. Signed-off-by: James Almer <jamrial@gmail.com>
* avformat/av1: reorder OBUs before writting them in ff_isom_write_av1c()James Almer2018-08-021-4/+46
| | | | | | Make sure Sequence Header is first, and only allow one of its kind. Signed-off-by: James Almer <jamrial@gmail.com>
* avcodec/av1_parse: return size of the parsed OBU in parse_obu_header()James Almer2018-08-023-29/+26
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* avformat/av1: return an error when no data is provided to ff_isom_write_av1c()James Almer2018-08-021-0/+3
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* avcodec/av1_parse: check for OBU header overreadJames Almer2018-08-021-0/+4
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* avcodec/libaomdec: auto insert dump_extra bitstream filterJames Almer2018-08-022-0/+2
| | | | | | | | | Some containers, like Matroska, may propagate key frames with no Sequence Header OBU since it's provided in extradata instead. With this change, the Sequence Header will be appended to the packet data before calling aom_codec_decode(). Signed-off-by: James Almer <jamrial@gmail.com>
* avcodec/dump_extradata_bsf: don't allocate a new AVPacket per filtered packetJames Almer2018-08-021-3/+4
| | | | | | ~4x speedup in dump_extradata() Signed-off-by: James Almer <jamrial@gmail.com>
* avformat/avs: add descriptive name and urlGyan Doshi2018-08-021-1/+7
| | | | | AVS now more commonly refers to the Chinese AVS format. This demuxer processes video files for Creature Shock game
* x86/pixelutils: don't use the AVX2 functions on CPUs known to be slow with themJames Almer2018-07-311-1/+1
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* x86/pixelutils: add missing preprocessor wrapper to the AVX2 functionsJames Almer2018-07-311-0/+2
| | | | | | Should fix compilation with old yasm/nasm Signed-off-by: James Almer <jamrial@gmail.com>
* tools/qt-faststart: Allow free atoms after moov atom.Carl Eugen Hoyos2018-08-011-1/+12
|
* avutil/pixelutils: sad_32x32 sse2/avx2 optimizations.Jun Zhao2018-07-312-0/+249
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | add ff_pixelutils_sad_32x32_sse2, ff_pixelutils_sad_{a,u}_32x32_sse2, ff_pixelutils_sad_32x32_avx22, ff_pixelutils_sad_{a,u}_32x32_avx2 use perf record/report profiling, get instructions:u for avx2 sad_32x32: 72.05% pixelutils pixelutils [.] block_sad_32x32_c 18.50% pixelutils pixelutils [.] block_sad_16x16_c 4.78% pixelutils pixelutils [.] block_sad_8x8_c 2.69% pixelutils pixelutils [.] block_sad_4x4_c 0.89% pixelutils pixelutils [.] block_sad_2x2_c 0.16% pixelutils pixelutils [.] ff_pixelutils_sad_32x32_avx2 0.16% pixelutils pixelutils [.] ff_pixelutils_sad_u_32x32_avx2 0.12% pixelutils pixelutils [.] ff_pixelutils_sad_a_32x32_avx2 sse2 sad_32x32 instructions:u like: 71.86% pixelutils pixelutils [.] block_sad_32x32_c 18.42% pixelutils pixelutils [.] block_sad_16x16_c 4.81% pixelutils pixelutils [.] block_sad_8x8_c 2.68% pixelutils pixelutils [.] block_sad_4x4_c 0.88% pixelutils pixelutils [.] block_sad_2x2_c 0.29% pixelutils pixelutils [.] ff_pixelutils_sad_32x32_sse2 0.26% pixelutils pixelutils [.] ff_pixelutils_sad_u_32x32_sse2 0.23% pixelutils pixelutils [.] ff_pixelutils_sad_a_32x32_sse2 Signed-off-by: Jun Zhao <mypopydev@gmail.com>
* lavutil/pixelutils: add sad_32x32 in pixelutils API.Jun Zhao2018-07-313-1/+15
| | | | | | add sad_32x32 in pixelutils API, and update the fate. Signed-off-by: Jun Zhao <mypopydev@gmail.com>
* avcodec/h264_mp4toannexb_bsf: use enum constants for the NAL unit type valuesJames Almer2018-07-301-7/+8
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* fate: add tests for audio channel up-/downmixing with pan filterTobias Rapp2018-07-306-22/+146
| | | | | | | | | | | | | Add tests for upmixing and downmixing with audio channel counts that have a corresponding default layout and also tests where there is no default layout. Update the existing "stereo4" test so it actually outputs stereo like the other stereo tests. Rename the previous "stereo4" test into "upmix1". Reviewed-by: Nicolas George <george@nsup.org> Signed-off-by: Tobias Rapp <t.rapp@noa-archive.com>
* tests/audiogen: raise channel count limit to 12Tobias Rapp2018-07-301-1/+1
| | | | | Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: Tobias Rapp <t.rapp@noa-archive.com>
* libavformat/dashenc: Fix relative URI of HLS master playlistAntonio Morell2018-07-301-1/+1
|
* doc/formats: Add documentation for skip_estimate_duration_from_ptsMichael Niedermayer2018-07-301-0/+4
| | | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: Gyan Doshi <ffmpeg@gyani.pro>
* configure: add missing aandcttables dependency to asv1 and asv2 encodersJames Almer2018-07-291-2/+2
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* configure: add missing aandcttables dependency to mpegvideoencJames Almer2018-07-291-11/+11
| | | | | | | | | Also remove the superfluous aandcttables dependency from all the modules that only need it because of mpegvideoenc Fixes ticket #7333 Signed-off-by: James Almer <jamrial@gmail.com>