ffmpeg.git
11 months agoavformat/utils: Fix integer overflow in discontinuity check
Michael Niedermayer [Fri, 12 Oct 2018 01:00:32 +0000 (03:00 +0200)]
avformat/utils: Fix integer overflow in discontinuity check

Fixes: signed integer overflow: 7738135736989908991 - -7954308516317364223 cannot be represented in type 'long'
Fixes: find_stream_info_usan

Reported-by: Thomas Guilbert <tguilbert@google.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
11 months agolavc/mjpegdec: Support 2:3 subsampling.
Carl Eugen Hoyos [Wed, 17 Oct 2018 22:25:16 +0000 (00:25 +0200)]
lavc/mjpegdec: Support 2:3 subsampling.

Fixes ticket #7495.

11 months agolavf/mxfenc: Remove a write-only variable.
Carl Eugen Hoyos [Sat, 13 Oct 2018 11:10:29 +0000 (13:10 +0200)]
lavf/mxfenc: Remove a write-only variable.

Fixes the following warning:
libavformat/mxfenc.c:2125:22: warning: variable 'frame_size' set but not used

11 months agoavformat/xwma: fix WMAv2 with incorrect bit rate
bnnm [Wed, 3 Oct 2018 20:32:04 +0000 (22:32 +0200)]
avformat/xwma: fix WMAv2 with incorrect bit rate

Fixes trac issue #7215

Output for files created by xWMAEncode and various videogames is correct now.

1ch 32000hz files are still broken, would need fixes in WMA decoder.

Signed-off-by: bnnm <bananaman255@gmail.com>
11 months agodoc/bitstream_filters: Add av1_metadata
Mark Thompson [Thu, 4 Oct 2018 23:09:47 +0000 (00:09 +0100)]
doc/bitstream_filters: Add av1_metadata

11 months agotrace_headers: Fix memory leaks on syntax read failures
Mark Thompson [Thu, 4 Oct 2018 23:09:45 +0000 (00:09 +0100)]
trace_headers: Fix memory leaks on syntax read failures

11 months agoMAINTAINERS: remove myself as hls demuxer maintainer
Anssi Hannula [Sun, 14 Oct 2018 20:38:32 +0000 (23:38 +0300)]
MAINTAINERS: remove myself as hls demuxer maintainer

11 months agoavcodec/cbs: ensure user_data is padded for GBC parsing
Aman Gupta [Fri, 5 Oct 2018 18:36:51 +0000 (11:36 -0700)]
avcodec/cbs: ensure user_data is padded for GBC parsing

Fixes crash noticed in the cbs_userdata patchset.

====ERROR: AddressSanitizer: heap-buffer-overflow on address 0x609000026c89 at pc 0x00010725d37b bp 0x7ffeea04e750 sp 0x7ffeea04e748
READ of size 4 at 0x609000026c89 thread T0
    #0 0x10725d37a in ff_cbs_read_unsigned get_bits.h:274
    #1 0x1072d2767 in ff_cbs_read_a53_user_data cbs_misc_syntax_template.c:119
    #2 0x1078251a7 in h264_metadata_filter h264_metadata_bsf.c:595
    #3 0x105c1321d in output_packet ffmpeg.c:853

0x609000026c89 is located 1 bytes to the right of 8-byte region [0x609000026c80,0x609000026c88)
allocated by thread T0 here:
    #0 0x10aef08d7 in wrap_posix_memalign (libclang_rt.asan_osx_dynamic.dylib:x86_64h+0x578d7)
    #1 0x10aca95e6 in av_malloc mem.c:87
    #2 0x10ac545fe in av_buffer_allocz buffer.c:72
    #3 0x107263b27 in cbs_h264_read_nal_unit cbs_h264_syntax_template.c:722
    #4 0x10725b688 in cbs_read_fragment_content cbs.c:155

Signed-off-by: Aman Gupta <aman@tmm1.net>
11 months agoavcodec/cbs: fix crash in sei_pic_timestamp
Aman Gupta [Fri, 12 Oct 2018 03:42:58 +0000 (20:42 -0700)]
avcodec/cbs: fix crash in sei_pic_timestamp

Signed-off-by: Aman Gupta <aman@tmm1.net>
11 months agoavcodec/cbs_h264: silence errors about end_of_seq nalus
Aman Gupta [Mon, 8 Oct 2018 20:05:05 +0000 (13:05 -0700)]
avcodec/cbs_h264: silence errors about end_of_seq nalus

[ffmpeg] AVBSFContext: Decomposition unimplemented for unit 4 (type 10).

Signed-off-by: Aman Gupta <aman@tmm1.net>
11 months agodoc/filters: update silenceremove documentation
Paul B Mahol [Mon, 15 Oct 2018 16:10:16 +0000 (18:10 +0200)]
doc/filters: update silenceremove documentation

11 months agoavfilter/af_silenceremove: use enum for threshold detection modes
Paul B Mahol [Mon, 15 Oct 2018 15:52:56 +0000 (17:52 +0200)]
avfilter/af_silenceremove: use enum for threshold detection modes

11 months agoavfilter/af_silenceremove: add enum for detection modes
Paul B Mahol [Mon, 15 Oct 2018 15:44:56 +0000 (17:44 +0200)]
avfilter/af_silenceremove: add enum for detection modes

11 months agoavfilter/af_silenceremove: add options description
Paul B Mahol [Mon, 15 Oct 2018 14:26:16 +0000 (16:26 +0200)]
avfilter/af_silenceremove: add options description

11 months agoavfilter/af_silenceremove: prefer outlink instead of inlink
Paul B Mahol [Mon, 15 Oct 2018 14:09:24 +0000 (16:09 +0200)]
avfilter/af_silenceremove: prefer outlink instead of inlink

11 months agoavfilter/af_silenceremove: add mode options
Paul B Mahol [Mon, 15 Oct 2018 14:05:04 +0000 (16:05 +0200)]
avfilter/af_silenceremove: add mode options

To control how threshold is calculated in multichannel audio.

11 months agoavfilter/af_silenceremove: add options to keep min duration of silence
Paul B Mahol [Mon, 8 Oct 2018 18:43:14 +0000 (20:43 +0200)]
avfilter/af_silenceremove: add options to keep min duration of silence

12 months agoavcodec/av1_parse: Check obu_size
Michael Niedermayer [Sun, 14 Oct 2018 10:40:38 +0000 (12:40 +0200)]
avcodec/av1_parse: Check obu_size

Fixes: out of array read
Fixes: SIGSEGV_get_obu_bit_length_av1_parse

Found-by: keval shah <skeval65@gmail.com>
Reviewed-by: James Almer <jamrial@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
12 months agoffmpeg: log corrupted packets and frames
Marton Balint [Tue, 9 Oct 2018 21:03:20 +0000 (23:03 +0200)]
ffmpeg: log corrupted packets and frames

Signed-off-by: Marton Balint <cus@passwd.hu>
12 months agoavcodec/cuviddec: properly take deinterlacing and display delay into account for...
Timo Rothenpieler [Sat, 13 Oct 2018 21:44:30 +0000 (23:44 +0200)]
avcodec/cuviddec: properly take deinterlacing and display delay into account for buffer_full check

Signed-off-by: Timo Rothenpieler <timo@rothenpieler.org>
12 months agoavcodec/imm4: improve decoding of some files
Paul B Mahol [Sun, 14 Oct 2018 10:57:03 +0000 (12:57 +0200)]
avcodec/imm4: improve decoding of some files

12 months agofate: Update checksums for recent mxf changes
Michael Niedermayer [Sun, 14 Oct 2018 11:03:19 +0000 (13:03 +0200)]
fate: Update checksums for recent mxf changes

References: bb89109a0a29d51cb207352834f6b92784c1700d84e8a87ca082f5a882e83fcb34a970f8b720cc25ea55a11ced5ef73bc7173ae2d3e268e26b3513503d38e45eb85c7a2420cb48a9cd45625c28644b2e

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
12 months agodoc/filters: do not mention removed option from afir filter
Paul B Mahol [Sat, 13 Oct 2018 19:44:06 +0000 (21:44 +0200)]
doc/filters: do not mention removed option from afir filter

12 months agoavformat: add SER demuxer
Paul B Mahol [Fri, 12 Oct 2018 09:33:29 +0000 (11:33 +0200)]
avformat: add SER demuxer

12 months agoswscale/x86/rgb2rgb : port shuffle 2103 mmxext to external asm and remove inline...
Martin Vignali [Thu, 11 Oct 2018 19:35:05 +0000 (21:35 +0200)]
swscale/x86/rgb2rgb : port shuffle 2103 mmxext to external asm and remove inline asm version

12 months agoswscale/x86/rgb2rgb : remove mmx version for shuffle2103
Martin Vignali [Thu, 11 Oct 2018 19:31:18 +0000 (21:31 +0200)]
swscale/x86/rgb2rgb : remove mmx version for shuffle2103

12 months agolavf/mxfenc: Remove two unused variables.
Carl Eugen Hoyos [Sat, 13 Oct 2018 11:08:32 +0000 (13:08 +0200)]
lavf/mxfenc: Remove two unused variables.

Fixes the following warnings:
libavformat/mxfenc.c:2036:9: warning: unused variable 'i'
libavformat/mxfenc.c:2125:9: warning: unused variable 'i'

12 months agolavf/mxfdec: demux s436m as eia608 subtitle track
Baptiste Coudurier [Tue, 14 Feb 2017 18:46:56 +0000 (10:46 -0800)]
lavf/mxfdec: demux s436m as eia608 subtitle track

12 months agolavf/mxfenc: support creating s436m data tracks
Baptiste Coudurier [Sat, 19 Nov 2016 19:09:24 +0000 (11:09 -0800)]
lavf/mxfenc: support creating s436m data tracks

12 months agoavformat/mxfenc: correctly set content package rate in system element
Baptiste Coudurier [Wed, 21 Mar 2018 20:13:51 +0000 (13:13 -0700)]
avformat/mxfenc: correctly set content package rate in system element

12 months agoavformat/mxfenc: update body partition with footer offset
Baptiste Coudurier [Wed, 21 Mar 2018 19:59:11 +0000 (12:59 -0700)]
avformat/mxfenc: update body partition with footer offset

12 months agoavformat/mxfenc: add mpeg-2 specific metadata, fix compatibility with sony content...
Baptiste Coudurier [Wed, 21 Mar 2018 16:35:22 +0000 (09:35 -0700)]
avformat/mxfenc: add mpeg-2 specific metadata, fix compatibility with sony content browser

12 months agoavformat/mxfenc: write index delta entry array needed by sony vegas pro 11
Baptiste Coudurier [Wed, 21 Mar 2018 19:53:56 +0000 (12:53 -0700)]
avformat/mxfenc: write index delta entry array needed by sony vegas pro 11

12 months agoavcodec/imm4: stop using FAAN idct
Paul B Mahol [Fri, 12 Oct 2018 16:53:26 +0000 (18:53 +0200)]
avcodec/imm4: stop using FAAN idct

12 months agoavcodec/avpacket: fix whitespace
Aman Gupta [Mon, 10 Sep 2018 01:09:47 +0000 (18:09 -0700)]
avcodec/avpacket: fix whitespace

Signed-off-by: Aman Gupta <aman@tmm1.net>
12 months agoavcodec/mediacodec: add av_mediacodec_render_buffer_at_time()
Aman Gupta [Wed, 1 Aug 2018 01:34:15 +0000 (18:34 -0700)]
avcodec/mediacodec: add av_mediacodec_render_buffer_at_time()

The existing av_mediacodec_release_buffer allows the user to render
or discard the Surface-backed frame. This new method allows the user
to control exactly when the frame will be rendered to its SurfaceView.

Available since Android API 21.

Signed-off-by: Aman Gupta <aman@tmm1.net>
12 months agolibavcodec/libaomenc.c: Added code for computing PSNR/SSIM
Sam John [Fri, 28 Sep 2018 22:09:05 +0000 (15:09 -0700)]
libavcodec/libaomenc.c: Added code for computing PSNR/SSIM

Signed-off-by: James Almer <jamrial@gmail.com>
12 months agoavcodec/ffv1dec_template: Check for the end of input after 1024 pixels
Michael Niedermayer [Mon, 8 Oct 2018 01:35:58 +0000 (03:35 +0200)]
avcodec/ffv1dec_template: Check for the end of input after 1024 pixels

Fixes: Timeout
Fixes: 10385/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_FFV1_fuzzer-5689206987292672

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
12 months agoavcodec/aacdec_template: Allow duplicated elements
Michael Niedermayer [Sun, 7 Oct 2018 11:03:00 +0000 (13:03 +0200)]
avcodec/aacdec_template: Allow duplicated elements

Such streams are invalid according to
4.5.2.1 Top level payloads for the audio object types AAC main, AAC SSR, AAC LC and AAC LTP
4.5.2.1.1 Definitions
...cIn the raw_data_block(), several instances of the
same syntactic element may occur, but must have a different 4 bit
element_instance_tag, except for data_stream_element()'s and
fill_element()'s.

Fixes: Ticket7477

Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
12 months agoavformat/dashenc: only write video streams into HLS master playlist
Jian Yang [Fri, 14 Sep 2018 07:08:17 +0000 (15:08 +0800)]
avformat/dashenc: only write video streams into HLS master playlist

Tool mediastreamvalidator reports error "Variant media_[N].m3u8 is
missing audio group" for audio streams in HLS master playlist. As audio
streams are already listed in audio group, skip them as variant media
streams in master playlist.

12 months agolavu/qsv: make a copy as libmfx alignment requirement for uploading
Zhong Li [Mon, 17 Sep 2018 11:16:44 +0000 (19:16 +0800)]
lavu/qsv: make a copy as libmfx alignment requirement for uploading

Libmfx requires 16 bytes aligned input/output for uploading.
Currently only output is 16 byte aligned and assigning same width/height to
input with smaller buffer size actually, thus definitely will cause segment fault.

Can reproduce with any 1080p nv12 rawvideo input:
ffmpeg -init_hw_device qsv=qsv:hw -hwaccel qsv -filter_hw_device qsv -f rawvideo -pix_fmt nv12 -s:v 1920x1080
-i 1080p_nv12.yuv -vf 'format=nv12,hwupload=extra_hw_frames=16,hwdownload,format=nv12' -an -y out_nv12.yuv

It can fix #7418

Signed-off-by: Zhong Li <zhong.li@intel.com>
12 months agolavu/hwcontext_qsv: Add support for AV_PIX_FMT_BGRA.
Zhong Li [Mon, 21 May 2018 09:58:52 +0000 (17:58 +0800)]
lavu/hwcontext_qsv: Add support for AV_PIX_FMT_BGRA.

RGB32(AV_PIX_FMT_BGRA on intel platforms) format may be used as overlay with alpha blending.
So add AV_PIX_FMT_BGRA format support.

One example of alpha blending overlay: ffmpeg -hwaccel qsv -c:v h264_qsv -i BA1_Sony_D.jsv
-filter_complex 'movie=lena-rgba.png,hwupload=extra_hw_frames=16[a];[0:v][a]overlay_qsv=x=10:y=10'
-c:v h264_qsv -y out.mp4

Rename RGB32 to be BGRA to make it clearer as Mark Thompson's suggestion.

V2: Add P010 format support else will introduce HEVC 10bit encoding regression.
    Thanks for LinJie's discovery.

Signed-off-by: Zhong Li <zhong.li@intel.com>
Verified-by: Fu, Linjie <linjie.fu@intel.com>
12 months agoavfilter/af_afir: remove again option, merge it with gtype
Paul B Mahol [Wed, 10 Oct 2018 17:55:30 +0000 (19:55 +0200)]
avfilter/af_afir: remove again option, merge it with gtype

12 months agolibavfilter: bump micro version to 101
Daniel Molkentin [Tue, 9 Oct 2018 12:32:58 +0000 (14:32 +0200)]
libavfilter: bump micro version to 101

12 months agolibavfilter/ebur128: add scale parameter
Daniel Molkentin [Tue, 9 Oct 2018 12:32:57 +0000 (14:32 +0200)]
libavfilter/ebur128: add scale parameter

This allows switching between absolute (LUFS) and relativ (LU) display
in the status line.

Signed-off-by: Daniel Molkentin <daniel@molkentin.de>
Signed-off-by: Conrad Zelck <c.zelck@imail.de>
12 months agolibavfilter/ebur128: introduce target range
Daniel Molkentin [Tue, 9 Oct 2018 12:32:56 +0000 (14:32 +0200)]
libavfilter/ebur128: introduce target range

This eases meeting the target level during live mixing.

Signed-off-by: Daniel Molkentin <daniel@molkentin.de>
Signed-off-by: Conrad Zelck <c.zelck@imail.de>
12 months agolibavfilter/ebur128: add gauge option
Daniel Molkentin [Tue, 9 Oct 2018 12:32:55 +0000 (14:32 +0200)]
libavfilter/ebur128: add gauge option

Allow to show short-term instead of momentary in gauge. Useful for monitoring
whilst live mixing.

Signed-off-by: Daniel Molkentin <daniel@molkentin.de>
Signed-off-by: Conrad Zelck <c.zelck@imail.de>
12 months agolibavfilter/ebur128: add target value to statistics line
Daniel Molkentin [Tue, 9 Oct 2018 12:32:54 +0000 (14:32 +0200)]
libavfilter/ebur128: add target value to statistics line

Signed-off-by: Daniel Molkentin <daniel@molkentin.de>
Signed-off-by: Conrad Zelck <c.zelck@imail.de>
12 months agolibavfilter/ebur128: add target level option for EBUR128 visualization filter
Daniel Molkentin [Tue, 9 Oct 2018 12:32:53 +0000 (14:32 +0200)]
libavfilter/ebur128: add target level option for EBUR128 visualization filter

Signed-off-by: Daniel Molkentin <daniel@molkentin.de>
Signed-off-by: Conrad Zelck <c.zelck@imail.de>
12 months agolavf/ftp: Remove an unneeded forward declaration.
Carl Eugen Hoyos [Tue, 9 Oct 2018 20:49:34 +0000 (22:49 +0200)]
lavf/ftp: Remove an unneeded forward declaration.

12 months agoavfilter/af_asetnsamples: do not leak frame on ENOMEM
Marton Balint [Sun, 7 Oct 2018 20:47:19 +0000 (22:47 +0200)]
avfilter/af_asetnsamples: do not leak frame on ENOMEM

Fixes Coverity CID 1416352.

Signed-off-by: Marton Balint <cus@passwd.hu>
12 months agoffmpeg: check return value of avcodec_parameters_from_context
Marton Balint [Sun, 7 Oct 2018 20:16:49 +0000 (22:16 +0200)]
ffmpeg: check return value of avcodec_parameters_from_context

Fixes Coverity CID 1427273.

Signed-off-by: Marton Balint <cus@passwd.hu>
12 months agoavfilter/f_cue: always check the return value of ff_inlink_consume_frame
Marton Balint [Sun, 7 Oct 2018 19:48:45 +0000 (21:48 +0200)]
avfilter/f_cue: always check the return value of ff_inlink_consume_frame

Fixes Coverity CID 1439936.

Signed-off-by: Marton Balint <cus@passwd.hu>
12 months agoh264_slice: Copy the value of x264_build before calling h264_slice_header_init during...
Derek Buitenhuis [Mon, 8 Oct 2018 15:33:26 +0000 (11:33 -0400)]
h264_slice: Copy the value of x264_build before calling h264_slice_header_init during thread init

If we don't copy this value first, it is seen as 0 by h264_slice_header_init,
due to zero-allocation of the new context, triggering an old hack that
multiplied the denominator by 2 for files produced by old x264 versions, but
only if more than one thread was used.

Fixes #7475 and #7083.

Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
12 months agoavfilter/f_reverse: add packed sample format support to areverse
Paul B Mahol [Mon, 8 Oct 2018 11:33:22 +0000 (13:33 +0200)]
avfilter/f_reverse: add packed sample format support to areverse

12 months agoavfilter/af_silenceremove: fix max for duration options
Paul B Mahol [Mon, 8 Oct 2018 10:22:12 +0000 (12:22 +0200)]
avfilter/af_silenceremove: fix max for duration options

12 months agoffplay: add options to specify window position
Dave Rice [Mon, 1 Oct 2018 21:07:44 +0000 (17:07 -0400)]
ffplay: add options to specify window position

Signed-off-by: Marton Balint <cus@passwd.hu>
12 months agoavutil/tests/parseutils: add some big duration tests
Marton Balint [Sun, 30 Sep 2018 20:10:09 +0000 (22:10 +0200)]
avutil/tests/parseutils: add some big duration tests

Signed-off-by: Marton Balint <cus@passwd.hu>
12 months agoavutil/parseutils: fix some overflows in duration calculations
Marton Balint [Sun, 30 Sep 2018 20:34:41 +0000 (22:34 +0200)]
avutil/parseutils: fix some overflows in duration calculations

Also properly return AVERROR(ERANGE) in case of actual overflows.

Signed-off-by: Marton Balint <cus@passwd.hu>
12 months agoavutil/opt: check for minimum and maximum values when setting AV_OPT_TYPE_DURATION...
Marton Balint [Sun, 30 Sep 2018 19:30:10 +0000 (21:30 +0200)]
avutil/opt: check for minimum and maximum values when setting AV_OPT_TYPE_DURATION fields

Signed-off-by: Marton Balint <cus@passwd.hu>
12 months agoavformat/segment: fix segment_time_delta option min/max value
Marton Balint [Sun, 30 Sep 2018 19:23:55 +0000 (21:23 +0200)]
avformat/segment: fix segment_time_delta option min/max value

Signed-off-by: Marton Balint <cus@passwd.hu>
12 months agoavfilter/af_afade: fix crossfade duration maximum value
Marton Balint [Sun, 30 Sep 2018 19:18:26 +0000 (21:18 +0200)]
avfilter/af_afade: fix crossfade duration maximum value

Signed-off-by: Marton Balint <cus@passwd.hu>
12 months agoavfilter/af_afade: add logistic sigmoid curve
Paul B Mahol [Sun, 7 Oct 2018 15:38:22 +0000 (17:38 +0200)]
avfilter/af_afade: add logistic sigmoid curve

12 months agoavfilter/avf_showspectrum: add legend support to showspectrum filter
Paul B Mahol [Sun, 7 Oct 2018 10:10:59 +0000 (12:10 +0200)]
avfilter/avf_showspectrum: add legend support to showspectrum filter

12 months agoavformat/utils: Fix potential integer overflow in extract_extradata()
Michael Niedermayer [Wed, 26 Sep 2018 22:00:26 +0000 (00:00 +0200)]
avformat/utils: Fix potential integer overflow in extract_extradata()

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
12 months agoavformat/utils: Do not use "i" as a context pointer, "i" is normally the integer...
Michael Niedermayer [Wed, 26 Sep 2018 22:00:25 +0000 (00:00 +0200)]
avformat/utils: Do not use "i" as a context pointer, "i" is normally the integer counter in loops

This avoids surprising developers. Its bad to surprise developers with
such unexpected things.

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
12 months agoavformat/utils: Do not ignore failure in extract_extradata_init()
Michael Niedermayer [Wed, 26 Sep 2018 22:00:24 +0000 (00:00 +0200)]
avformat/utils: Do not ignore failure in extract_extradata_init()

We check for the documented explanation of the "Ignore code" in extract_extradata_check() already

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
12 months agoavcodec/speedhq: Make speedhq_vlc const
Michael Niedermayer [Wed, 19 Sep 2018 16:05:32 +0000 (18:05 +0200)]
avcodec/speedhq: Make speedhq_vlc const

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
12 months agoavfilter/vf_tonemap_opencl: Fix seperate typo
Michael Niedermayer [Wed, 19 Sep 2018 16:05:30 +0000 (18:05 +0200)]
avfilter/vf_tonemap_opencl: Fix seperate typo

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
12 months agoavcodec/vc1_loopfilter: Fix colums typos
Michael Niedermayer [Wed, 19 Sep 2018 16:05:29 +0000 (18:05 +0200)]
avcodec/vc1_loopfilter: Fix colums typos

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
12 months agolibavcodec/v4l2_buffers.h: fix cant typos
Michael Niedermayer [Wed, 19 Sep 2018 16:05:28 +0000 (18:05 +0200)]
libavcodec/v4l2_buffers.h: fix cant typos

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
12 months agoavfilter/af_biquads: Remove l from %lf in av_log environment
Michael Niedermayer [Wed, 19 Sep 2018 16:05:27 +0000 (18:05 +0200)]
avfilter/af_biquads: Remove l from %lf in av_log environment

The l modifier does nothing in C99 and it was undefined in C89 for %f

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
12 months agoavfilter/af_aiir: Remove l from %lf in av_log environment
Michael Niedermayer [Wed, 19 Sep 2018 16:05:26 +0000 (18:05 +0200)]
avfilter/af_aiir: Remove l from %lf in av_log environment

The l modifier does nothing in C99 and it was undefined in C89 for %f

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
12 months agoavformat/movenc: Remove unneeded variable from mov_find_codec_tag()
Michael Niedermayer [Wed, 19 Sep 2018 16:05:25 +0000 (18:05 +0200)]
avformat/movenc: Remove unneeded variable from mov_find_codec_tag()

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
12 months agolibavformat/ty: use decimal constant for shift
Michael Niedermayer [Wed, 19 Sep 2018 16:05:23 +0000 (18:05 +0200)]
libavformat/ty: use decimal constant for shift

This was the only case in the source that uses a hexadecimal shift value.
The change removed a special case in respect to greping

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
12 months agoavcodec/unary: Improve get_unary() docs
Michael Niedermayer [Sat, 22 Sep 2018 13:18:17 +0000 (15:18 +0200)]
avcodec/unary: Improve get_unary() docs

Found-by: kierank
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
12 months agoavfilter/avf_showspectrum: switch to activate and add fps option
Paul B Mahol [Sat, 6 Oct 2018 10:32:55 +0000 (12:32 +0200)]
avfilter/avf_showspectrum: switch to activate and add fps option

12 months agoMerge commit '21733b39d0af5211d7b9f168ff3667ea86362e2b'
Mark Thompson [Sat, 6 Oct 2018 17:43:28 +0000 (18:43 +0100)]
Merge commit '21733b39d0af5211d7b9f168ff3667ea86362e2b'

* commit '21733b39d0af5211d7b9f168ff3667ea86362e2b':
  lavu/qsv: fix a random hwupload failure regression

Fixes CID #1439585.

Merged-by: Mark Thompson <sw@jkqxz.net>
12 months agolavfi/deshake: fix deshake crash issue.
Jun Zhao [Tue, 18 Sep 2018 06:57:49 +0000 (14:57 +0800)]
lavfi/deshake: fix deshake crash issue.

Fixes ticket #7441.

for block contrast calculate, the block is like this:

|<---------------- stride-----------------------|
+----------------------------------------------->  X
|
|            w = 16
|    (cx,cy)+------+
|           |      |
|h=blocksize|      |
|           |      |
|           +------+
V

Y

so we calc the block contrast use:
   (cy + y) * stride + (cx + x)

Signed-off-by: Jun Zhao <mypopydev@gmail.com>
12 months agoav1_metadata: Fix constraint on setting chroma_sample_position
Mark Thompson [Thu, 4 Oct 2018 22:29:04 +0000 (23:29 +0100)]
av1_metadata: Fix constraint on setting chroma_sample_position

It can't be set for 4:2:2 streams.

12 months agoavfilter/avf_showspectrum: increase padding size for low sample rates
Paul B Mahol [Fri, 5 Oct 2018 13:23:02 +0000 (15:23 +0200)]
avfilter/avf_showspectrum: increase padding size for low sample rates

12 months agoavfilter/avf_showspectrum: add zoom mode to showspectrumpic
Paul B Mahol [Fri, 5 Oct 2018 12:22:07 +0000 (14:22 +0200)]
avfilter/avf_showspectrum: add zoom mode to showspectrumpic

12 months agoavfilter/avf_showspectrum: add green color map
Paul B Mahol [Fri, 5 Oct 2018 10:00:57 +0000 (12:00 +0200)]
avfilter/avf_showspectrum: add green color map

12 months agolavfi/atempo: fix tempo range limit inconsistency
Pavel Koshevoy [Thu, 4 Oct 2018 04:59:31 +0000 (22:59 -0600)]
lavfi/atempo: fix tempo range limit inconsistency

yae_set_tempo was overlooked when max tempo limit was raised to 100.

tested with:
./ffmpeg_g -i Delerium/SemanticSpaces/Gateway.mp3 \
-af asendcmd=f=asendcmd.cfg,atempo=1.0 -y /tmp/asendcmd-atempo.wav

where asendcmd.cfg was:
15.0-45.0 [enter] atempo tempo 2.0,
          [leave] atempo tempo 0.5;

60.0-300.0 [enter] atempo tempo 4.0,
           [leave] atempo tempo 1.0;

12 months agoavfilter/avf_showspectrum: fix scaling in zoom mode
Paul B Mahol [Thu, 4 Oct 2018 22:15:26 +0000 (00:15 +0200)]
avfilter/avf_showspectrum: fix scaling in zoom mode

12 months agoavfilter/avf_showspectrum: implement zoom mode
Paul B Mahol [Thu, 4 Oct 2018 21:40:02 +0000 (23:40 +0200)]
avfilter/avf_showspectrum: implement zoom mode

12 months agoavilter/af_afir: add irfmt option
Paul B Mahol [Thu, 4 Oct 2018 19:10:47 +0000 (21:10 +0200)]
avilter/af_afir: add irfmt option

12 months agoavcodec/libaomdec: remove bogus comment
James Almer [Thu, 4 Oct 2018 18:43:54 +0000 (15:43 -0300)]
avcodec/libaomdec: remove bogus comment

It's a remnant from libvpx that's not valid for libaom.

Signed-off-by: James Almer <jamrial@gmail.com>
12 months agoavfilter/af_afir: use internal lavfi queue
Paul B Mahol [Wed, 3 Oct 2018 10:49:44 +0000 (12:49 +0200)]
avfilter/af_afir: use internal lavfi queue

12 months agoavfilter/af_headphone: use lavfi internal queue instead
Paul B Mahol [Tue, 2 Oct 2018 20:08:45 +0000 (22:08 +0200)]
avfilter/af_headphone: use lavfi internal queue instead

Signed-off-by: Paul B Mahol <onemda@gmail.com>
12 months agoavfilter/af_asetnsamples: use lavfi internal queue
Paul B Mahol [Wed, 3 Oct 2018 10:20:34 +0000 (12:20 +0200)]
avfilter/af_asetnsamples: use lavfi internal queue

12 months agoavfilter: add ff_inlink_queued_samples()
Paul B Mahol [Tue, 2 Oct 2018 19:57:00 +0000 (21:57 +0200)]
avfilter: add ff_inlink_queued_samples()

12 months agoavcodec: add an AV1 parser
James Almer [Sat, 14 Jul 2018 14:59:59 +0000 (11:59 -0300)]
avcodec: add an AV1 parser

Simple parser to set keyframes, frame type, structure, width, height, and pixel
format, plus stream profile and level.

Reviewed-by: Mark Thompson <sw@jkqxz.net>
Signed-off-by: James Almer <jamrial@gmail.com>
12 months agoavcodec/av1_metadata: add an option to insert and remove Temporal Delimiter OBUs
James Almer [Wed, 3 Oct 2018 00:05:51 +0000 (21:05 -0300)]
avcodec/av1_metadata: add an option to insert and remove Temporal Delimiter OBUs

Reviewed-by: Mark Thompson <sw@jkqxz.net>
Signed-off-by: James Almer <jamrial@gmail.com>
12 months agoavfilter/f_cue: use inlink fifo for queueing frames
Marton Balint [Sun, 30 Sep 2018 10:52:44 +0000 (12:52 +0200)]
avfilter/f_cue: use inlink fifo for queueing frames

Signed-off-by: Marton Balint <cus@passwd.hu>
12 months agoavfilter/filters: add ff_inlink_peek_frame and ff_inlink_queued_frames to access...
Marton Balint [Sun, 30 Sep 2018 21:28:28 +0000 (23:28 +0200)]
avfilter/filters: add ff_inlink_peek_frame and ff_inlink_queued_frames to access frames in the inlink fifo

Signed-off-by: Marton Balint <cus@passwd.hu>
12 months agodoc/protocols: simplify and clarify UDP localaddr option
Marton Balint [Fri, 21 Sep 2018 22:19:17 +0000 (00:19 +0200)]
doc/protocols: simplify and clarify UDP localaddr option

Signed-off-by: Marton Balint <cus@passwd.hu>
12 months agoavformat/udp: always use IP_ADD_SOURCE_MEMBERSHIP for subscribing to an UDP multicast...
Marton Balint [Fri, 21 Sep 2018 21:34:50 +0000 (23:34 +0200)]
avformat/udp: always use IP_ADD_SOURCE_MEMBERSHIP for subscribing to an UDP multicast source group in IPv4

That alone supports specifying the interface based on its address. Getting the
interface index from the local address seems quite a bit of work in a platform
independent way...

Obviously for IPv6 we still always use MCAST_JOIN_SOURCE_GROUP.

As a side effect this also fixes ticket #7459.

Signed-off-by: Marton Balint <cus@passwd.hu>
12 months agoavformat/udp: specify the local address for some source filtered multicast joins
Marton Balint [Fri, 21 Sep 2018 20:27:02 +0000 (22:27 +0200)]
avformat/udp: specify the local address for some source filtered multicast joins

We already use localaddr for the multicast joins without source filters, so we
should use them for source filters as well. This patch only fixes the
IP_ADD_SOURCE_MEMBERSHIP and the IP_BLOCK_SOURCE case.

Unless we do this, the kernel automatically selects an interface based on the
source address, and that interface might be different from the one set in
localaddr. For blocked sources this even casues EINVAL because we joined the
multicast group on a different interface.

Signed-off-by: Marton Balint <cus@passwd.hu>
12 months agoavformat/udp: add support for generic source filtering
Marton Balint [Wed, 19 Sep 2018 23:23:58 +0000 (01:23 +0200)]
avformat/udp: add support for generic source filtering

This allows getting data only from a specific source IP. This is useful not
only for unicast but for multicast as well because multicast source
subscriptions do not act as source filters for the incoming packets.

Signed-off-by: Marton Balint <cus@passwd.hu>