ffmpeg.git
4 years agoavfilter: add sobel and prewitt filter
Paul B Mahol [Sat, 10 Sep 2016 21:34:30 +0000 (23:34 +0200)]
avfilter: add sobel and prewitt filter

Signed-off-by: Paul B Mahol <onemda@gmail.com>
4 years agoavfilter/vf_vaguedenoiser: calculate dimensions at init
Paul B Mahol [Sun, 11 Sep 2016 21:19:57 +0000 (23:19 +0200)]
avfilter/vf_vaguedenoiser: calculate dimensions at init

Signed-off-by: Paul B Mahol <onemda@gmail.com>
4 years agoavfilter/vf_vaguedenoiser: change thresholding to function pointers
Paul B Mahol [Sun, 11 Sep 2016 21:12:10 +0000 (23:12 +0200)]
avfilter/vf_vaguedenoiser: change thresholding to function pointers

Signed-off-by: Paul B Mahol <onemda@gmail.com>
4 years agoavcodec/h264_refs: Change default case to av_assert0() to suppress warning
Michael Niedermayer [Mon, 12 Sep 2016 10:14:39 +0000 (12:14 +0200)]
avcodec/h264_refs: Change default case to av_assert0() to suppress warning

Should fix "libavcodec/h264_refs.c:372:13: warning: variable 'i' is used uninitialized whenever switch default is taken"

Found-by: durandal_17
Suggested-by: jkqxz
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agolavc/ffjni: do not error out if the last non-mandatory field/method cannot be found
Matthieu Bouron [Fri, 9 Sep 2016 12:27:33 +0000 (14:27 +0200)]
lavc/ffjni: do not error out if the last non-mandatory field/method cannot be found

4 years agolibavcodec/mmaldec.c: set AVFrame interlaced_frame and top_field_first, AVCodecContex...
Jens Ziller [Sun, 14 Aug 2016 14:44:39 +0000 (16:44 +0200)]
libavcodec/mmaldec.c: set AVFrame interlaced_frame and top_field_first, AVCodecContext framerate

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agoavformat/tee: Use BSF list API
Jan Sebechlebsky [Thu, 7 Jul 2016 15:56:10 +0000 (17:56 +0200)]
avformat/tee: Use BSF list API

Signed-off-by: Jan Sebechlebsky <sebechlebskyjan@gmail.com>
4 years agoavformat/mux: implement AVFMT_FLAG_SHORTEST
Michael Niedermayer [Fri, 12 Aug 2016 19:28:08 +0000 (21:28 +0200)]
avformat/mux: implement AVFMT_FLAG_SHORTEST

This will allow fixing several bugs with the -shortest option

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agoivfenc: Add VPX codec tags.
Alex Converse [Fri, 9 Sep 2016 15:05:20 +0000 (08:05 -0700)]
ivfenc: Add VPX codec tags.

This fixes remuxing VPX from MP4 without manually overwriting the tag.

4 years agoavfilter/vf_overlay: inline yuv output formats
Paul B Mahol [Sat, 10 Sep 2016 14:23:13 +0000 (16:23 +0200)]
avfilter/vf_overlay: inline yuv output formats

Overall speedup ~10-20%

Tested-by: Michael on mingw32 mingw64 linux32 mips and arm
4 years agoavfilter/vf_overlay: split blend_image into functions for each overlay format
Paul B Mahol [Sat, 10 Sep 2016 10:17:08 +0000 (12:17 +0200)]
avfilter/vf_overlay: split blend_image into functions for each overlay format

Signed-off-by: Paul B Mahol <onemda@gmail.com>
4 years agoavfilter/avf_concat: Make independent of the channel layout
Michael Niedermayer [Mon, 5 Sep 2016 23:13:52 +0000 (01:13 +0200)]
avfilter/avf_concat: Make independent of the channel layout

Reviewed-by: Nicolas George <george@nsup.org>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agoavcodec/cuvid: Always check for internal errors during parsing
Philip Langdale [Sat, 10 Sep 2016 19:51:01 +0000 (12:51 -0700)]
avcodec/cuvid: Always check for internal errors during parsing

The cuvid parser is basically undocumented, and although you'd
think that a failed callback would result in the overall parse
call returning an error, that is not true.

So, we end up silently trying to keep going as if nothing is wrong,
which doesn't achieve anything.

Solution: check the internal error flag every time.
Signed-off-by: Philip Langdale <philipl@overt.org>
Signed-off-by: Timo Rothenpieler <timo@rothenpieler.org>
4 years agoavfilter/af_amix: use ff_all_channel_counts() instead of ff_all_channel_layouts()
Paul B Mahol [Sat, 10 Sep 2016 11:05:31 +0000 (13:05 +0200)]
avfilter/af_amix: use ff_all_channel_counts() instead of ff_all_channel_layouts()

Adds support for filtering frames with unknown channel layouts.

Signed-off-by: Paul B Mahol <onemda@gmail.com>
4 years agolavc/Makefile: add missing ADPCM_THP_LE objs
Rodger Combs [Wed, 3 Feb 2016 14:21:27 +0000 (08:21 -0600)]
lavc/Makefile: add missing ADPCM_THP_LE objs

4 years agolavc/Makefile: g729dec: fix missing file
Rodger Combs [Wed, 3 Feb 2016 13:14:33 +0000 (07:14 -0600)]
lavc/Makefile: g729dec: fix missing file

4 years agofate: Add copy-trac2211-avi test
Michael Niedermayer [Fri, 9 Sep 2016 21:53:32 +0000 (23:53 +0200)]
fate: Add copy-trac2211-avi test

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agotests/fate-run.sh: Analyze file generated in transcode()
Michael Niedermayer [Fri, 9 Sep 2016 21:17:02 +0000 (23:17 +0200)]
tests/fate-run.sh: Analyze file generated in transcode()

This should be much more informative than a plain md5 difference

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agoavformat/movenc: Check first DTS similar to dts difference
Michael Niedermayer [Fri, 9 Sep 2016 11:11:43 +0000 (13:11 +0200)]
avformat/movenc: Check first DTS similar to dts difference

Fixes assertion failure
Fixes: b84b53855a0b74560e64c6f45f505a13/signal_sigabrt_7ffff6ae7c37_3837_ef4e243ea5b4fa8d0becf4afe9166604.avi

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agoavfilter/vf_histogram: set foreground alpha if possible in destination format
Paul B Mahol [Fri, 9 Sep 2016 22:28:28 +0000 (00:28 +0200)]
avfilter/vf_histogram: set foreground alpha if possible in destination format

Signed-off-by: Paul B Mahol <onemda@gmail.com>
4 years agodoc/filters: add missing palette* options
Lou Logan [Fri, 9 Sep 2016 17:37:26 +0000 (09:37 -0800)]
doc/filters: add missing palette* options

Introduced in b7e78c7 and 93ae68d.

Fixes #5835.

The paletteuse debug options that are not part of the official API are
not included (debug_kdtree and color_search).

Signed-off-by: Lou Logan <lou@lrcd.com>
4 years agoavcodec/cuvid: check for and warn about invalid pkt_timebase
Timo Rothenpieler [Fri, 9 Sep 2016 14:35:48 +0000 (16:35 +0200)]
avcodec/cuvid: check for and warn about invalid pkt_timebase

4 years agoavcodec/cuvid: use pkt_timebase instead of time_base
Timo Rothenpieler [Fri, 9 Sep 2016 14:15:45 +0000 (16:15 +0200)]
avcodec/cuvid: use pkt_timebase instead of time_base

4 years agolavc/alsdec: use get_bitsz() to simplify reading of the mantissa
Thilo Borgmann [Fri, 9 Sep 2016 10:29:23 +0000 (12:29 +0200)]
lavc/alsdec: use get_bitsz() to simplify reading of the mantissa

Signed-off-by: James Almer <jamrial@gmail.com>
4 years agotests/fate/ffmpeg: regroup stream copy tests under a fate-streamcopy rule
Clément Bœsch [Fri, 9 Sep 2016 14:47:11 +0000 (16:47 +0200)]
tests/fate/ffmpeg: regroup stream copy tests under a fate-streamcopy rule

4 years agolavc/hevc: store VPS/SPS/PPS data
Matthieu Bouron [Wed, 7 Sep 2016 09:36:10 +0000 (11:36 +0200)]
lavc/hevc: store VPS/SPS/PPS data

4 years agoavfilter/vf_datascope: cleanup code a little
Paul B Mahol [Fri, 9 Sep 2016 12:16:22 +0000 (14:16 +0200)]
avfilter/vf_datascope: cleanup code a little

Make few helper functions.

Signed-off-by: Paul B Mahol <onemda@gmail.com>
4 years agofate: add hstack and vstack
Paul B Mahol [Fri, 9 Sep 2016 10:49:15 +0000 (12:49 +0200)]
fate: add hstack and vstack

Signed-off-by: Paul B Mahol <onemda@gmail.com>
4 years agoavfilter/vf_weave: do not leak unused frame
Paul B Mahol [Fri, 9 Sep 2016 09:58:18 +0000 (11:58 +0200)]
avfilter/vf_weave: do not leak unused frame

Signed-off-by: Paul B Mahol <onemda@gmail.com>
4 years agofate: add weave
Paul B Mahol [Fri, 9 Sep 2016 09:55:45 +0000 (11:55 +0200)]
fate: add weave

Signed-off-by: Paul B Mahol <onemda@gmail.com>
4 years agoavcodec/ccaption_dec: Use simple array instead of AVBuffer
Michael Niedermayer [Fri, 9 Sep 2016 08:26:15 +0000 (10:26 +0200)]
avcodec/ccaption_dec: Use simple array instead of AVBuffer

This is simpler and fixes an out of array read, fixing it with AVBuffers
would be more complex

Fixes: e00d9e6e50e5495cc93fea41147b97bb/asan_heap-oob_12dcdbb_8798_b32a97ea722dd37bb5066812cc674552.mov

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agoavformat/mov: Enable stream parsing for VP9.
Matthew Gregan [Wed, 7 Sep 2016 01:58:30 +0000 (13:58 +1200)]
avformat/mov: Enable stream parsing for VP9.

MP4 media containing VP9 using superframes (such as
https://github.com/Netflix/vp9-dash/raw/master/DASH-Samples/Fountain_2997_0560kbps_640x480_4x3PAR.ivf_DashUnencrypted.ismv)
does not decode correctly with the built-in VP9 decoder because
superframes are passed to the decoder whole rather than split into
individual frames.

Signed-off-by: Matthew Gregan <kinetik@flim.org>
4 years agoavformat/segment: give a warning message for remove initial_offset option
Steven Liu [Thu, 8 Sep 2016 13:56:44 +0000 (21:56 +0800)]
avformat/segment: give a warning message for remove initial_offset option

ffmpeg have a generic solution working with all muxer named
output_ts_offset, output_ts_offset will instead of initial_offset

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agoMAINTAINERS: Add myself for hlsenc
Steven Liu [Wed, 7 Sep 2016 16:56:19 +0000 (00:56 +0800)]
MAINTAINERS: Add myself for hlsenc

Signed-off-by: Steven Liu <lingjiujianke@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agoaf_hdcd: fix bounds check in hdcd_envelope()
Burt P [Thu, 8 Sep 2016 23:06:54 +0000 (18:06 -0500)]
af_hdcd: fix bounds check in hdcd_envelope()

From Sebastian Ramacher.
https://github.com/bp0/libhdcd/pull/11

Signed-off-by: Burt P <pburt0@gmail.com>
4 years agofate: add swaprect
Paul B Mahol [Thu, 8 Sep 2016 22:57:01 +0000 (00:57 +0200)]
fate: add swaprect

Signed-off-by: Paul B Mahol <onemda@gmail.com>
4 years agoavfilter/vf_datascope: let user change background opacity
Paul B Mahol [Thu, 8 Sep 2016 22:40:30 +0000 (00:40 +0200)]
avfilter/vf_datascope: let user change background opacity

Signed-off-by: Paul B Mahol <onemda@gmail.com>
4 years agoavcodec/alsdec: Fix reading 0 mantisse bits
Michael Niedermayer [Thu, 8 Sep 2016 20:02:44 +0000 (22:02 +0200)]
avcodec/alsdec: Fix reading 0 mantisse bits

Fixes assertion failure
Fixes: 848c24abc1721c9e3d1ba7bfee8d9fcc/asan_heap-oob_1d99eca_3709_567bba70d67e7d62714dcf56f26fb1da.mp4

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agoavcodec/svq3: Reintroduce slice_type
Michael Niedermayer [Thu, 8 Sep 2016 19:15:55 +0000 (21:15 +0200)]
avcodec/svq3: Reintroduce slice_type

Fixes out of array read
Fixes: 1642cd3962249d6aaf0eec2836023fb6/signal_sigsegv_2557a72_2995_04efaf2ff57a052f609a3b4a2ea4e622.mov

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agoavcodec/mlz: Check offset before writing
Michael Niedermayer [Thu, 8 Sep 2016 17:48:06 +0000 (19:48 +0200)]
avcodec/mlz: Check offset before writing

Fixes: 0cee183a09bff5aa5108429717c35a4d/asan_heap-oob_1d99eca_3702_9ef60e80de79082a778d3d9ce8ef3b64.mp4
Affects no release

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agoavcodec/mlz: clear dict on allocation to ensure there are no uninitialized values
Michael Niedermayer [Thu, 8 Sep 2016 17:46:27 +0000 (19:46 +0200)]
avcodec/mlz: clear dict on allocation to ensure there are no uninitialized values

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agoavcodec/alsdec: Fix raw_mantissa memleak
Michael Niedermayer [Thu, 8 Sep 2016 16:11:30 +0000 (18:11 +0200)]
avcodec/alsdec: Fix raw_mantissa memleak

Fixes: 0cee183a09bff5aa5108429717c35a4d/asan_heap-oob_1d99eca_3702_9ef60e80de79082a778d3d9ce8ef3b64.mp4

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agoavcodec/alsdec: Fix mlz memleak
Michael Niedermayer [Thu, 8 Sep 2016 16:04:13 +0000 (18:04 +0200)]
avcodec/alsdec: Fix mlz memleak

Fixes: 0cee183a09bff5aa5108429717c35a4d/asan_heap-oob_1d99eca_3702_172c75af9868d4c2556a79cc2413f4cc.mp4

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agoavcodec/nvenc: use frame size instead of surface size
Timo Rothenpieler [Thu, 8 Sep 2016 17:08:31 +0000 (19:08 +0200)]
avcodec/nvenc: use frame size instead of surface size

4 years agoavformat/mov: Fix potential integer overflow in mov_read_keys
Sergey Volk [Wed, 7 Sep 2016 21:05:35 +0000 (14:05 -0700)]
avformat/mov: Fix potential integer overflow in mov_read_keys

Actual allocation size is computed as (count + 1)*sizeof(meta_keys), so
we need to check that (count + 1) won't cause overflow.

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agofate: add shuffleframes test
Paul B Mahol [Thu, 8 Sep 2016 09:14:42 +0000 (11:14 +0200)]
fate: add shuffleframes test

Signed-off-by: Paul B Mahol <onemda@gmail.com>
4 years agoavfilter/vf_shuffleframes: unbreak filter
Paul B Mahol [Thu, 8 Sep 2016 08:53:43 +0000 (10:53 +0200)]
avfilter/vf_shuffleframes: unbreak filter

Regression since 736e2e2c30088d0c2a428a51372c78a0bfb7f356.

Signed-off-by: Paul B Mahol <onemda@gmail.com>
4 years agodoc/filters: itemize shuffleframes & shuffleplanes examples
Paul B Mahol [Thu, 8 Sep 2016 08:26:33 +0000 (10:26 +0200)]
doc/filters: itemize shuffleframes & shuffleplanes examples

Add one more shuffleframes example.

Signed-off-by: Paul B Mahol <onemda@gmail.com>
4 years agoavformat/hlsenc: implement program_date_time
Michael Niedermayer [Wed, 7 Sep 2016 19:34:44 +0000 (21:34 +0200)]
avformat/hlsenc: implement program_date_time

Reviewed-by: Steven Liu <lingjiujianke@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agoavfilter/vf_waveform: make possible to change background opacity
Paul B Mahol [Wed, 7 Sep 2016 20:19:45 +0000 (22:19 +0200)]
avfilter/vf_waveform: make possible to change background opacity

Only useful if output pixel format have alpha.

Signed-off-by: Paul B Mahol <onemda@gmail.com>
4 years agolavc/mediacodecdec_h264: use h264_parse.h instead of h264dec.h
Matthieu Bouron [Mon, 5 Sep 2016 13:46:29 +0000 (15:46 +0200)]
lavc/mediacodecdec_h264: use h264_parse.h instead of h264dec.h

ff_h264_decode_extradata is referenced by h264_parse.h and not
h264dec.h.

4 years agolavc/mediacodecdec_h264: move bsf variable declaration at the top of the function
Matthieu Bouron [Mon, 5 Sep 2016 13:38:13 +0000 (15:38 +0200)]
lavc/mediacodecdec_h264: move bsf variable declaration at the top of the function

4 years agoffmpeg_opt: Suggest to use "file:..." if a protocol was not found.
Carl Eugen Hoyos [Tue, 6 Sep 2016 10:47:34 +0000 (12:47 +0200)]
ffmpeg_opt: Suggest to use "file:..." if a protocol was not found.

Fixes Debian bug 785690.

4 years agoavcodec/nvenc: support RGB input
Sven C. Dack [Wed, 7 Sep 2016 13:35:14 +0000 (15:35 +0200)]
avcodec/nvenc: support RGB input

nvenc still encodes as yuv, but does the conversion internally which
brings some performance gains.

Signed-off-by: Timo Rothenpieler <timo@rothenpieler.org>
4 years agoavcodec/nvenc: correctly set inputPitch
Timo Rothenpieler [Wed, 7 Sep 2016 16:15:22 +0000 (18:15 +0200)]
avcodec/nvenc: correctly set inputPitch

4 years agoavcodec/nvenc: use av_image_copy for copying frame data
Timo Rothenpieler [Wed, 7 Sep 2016 13:49:28 +0000 (15:49 +0200)]
avcodec/nvenc: use av_image_copy for copying frame data

4 years agotests/fate:Add FATE for hls_flags append option
Steven Liu [Wed, 7 Sep 2016 15:04:46 +0000 (23:04 +0800)]
tests/fate:Add FATE for hls_flags append option

add tests/ref/fate/filter-hls-append for FATE
add hls-list-append fate use filter make audio data and test hls_flags
append options

Signed-off-by: Steven Liu <lingjiujianke@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agolavc/avcodec: Improve av_parser_parse() documentation, mention padding.
Carl Eugen Hoyos [Sun, 4 Sep 2016 20:03:12 +0000 (22:03 +0200)]
lavc/avcodec: Improve av_parser_parse() documentation, mention padding.

Fixes ticket #5809.

4 years agoaf_hdcd: hdcd_analyze_gen() using int instead of float
Burt P [Sat, 3 Sep 2016 09:39:07 +0000 (04:39 -0500)]
af_hdcd: hdcd_analyze_gen() using int instead of float

Signed-off-by: Burt P <pburt0@gmail.com>
4 years agoaf_hdcd: tweak hdcd_analyze_prepare() a bit
Burt P [Mon, 5 Sep 2016 10:59:39 +0000 (05:59 -0500)]
af_hdcd: tweak hdcd_analyze_prepare() a bit

* use the actual sample rate
* use a more sensible frequency for the tone
* update fate test result

Signed-off-by: Burt P <pburt0@gmail.com>
4 years agoaf_hdcd: move decoding setup from init to config_input
Burt P [Sun, 4 Sep 2016 14:49:44 +0000 (09:49 -0500)]
af_hdcd: move decoding setup from init to config_input

Signed-off-by: Burt P <pburt0@gmail.com>
4 years agoaf_hdcd: fix possible integer overflow
Burt P [Sun, 4 Sep 2016 14:28:39 +0000 (09:28 -0500)]
af_hdcd: fix possible integer overflow

Signed-off-by: Burt P <pburt0@gmail.com>
4 years agoaf_hdcd: some types renamed to remove _t
Burt P [Fri, 26 Aug 2016 05:00:05 +0000 (00:00 -0500)]
af_hdcd: some types renamed to remove _t

Following a suggestion by Diego Biurrun.
_t is reserved for POSIX, apparently.

Signed-off-by: Burt P <pburt0@gmail.com>
4 years agoavcodec/gif: don't honor transparency if palette changed
Paul B Mahol [Tue, 6 Sep 2016 11:28:59 +0000 (13:28 +0200)]
avcodec/gif: don't honor transparency if palette changed

It generally does not work.

Signed-off-by: Paul B Mahol <onemda@gmail.com>
4 years agoavfilter/vf_paletteuse: add option to use new palette for each output frame
Paul B Mahol [Fri, 2 Sep 2016 20:40:34 +0000 (22:40 +0200)]
avfilter/vf_paletteuse: add option to use new palette for each output frame

4 years agoavfilter/vf_palettegen: add mode for generating palette for each input frame
Paul B Mahol [Fri, 2 Sep 2016 20:15:10 +0000 (22:15 +0200)]
avfilter/vf_palettegen: add mode for generating palette for each input frame

Signed-off-by: Paul B Mahol <onemda@gmail.com>
4 years agoavfilter: add avgblur filter
Paul B Mahol [Mon, 5 Sep 2016 13:28:09 +0000 (15:28 +0200)]
avfilter: add avgblur filter

Signed-off-by: Paul B Mahol <onemda@gmail.com>
4 years agolavc/mediacodecdec_h264: fix SODB escaping
Matthieu Bouron [Tue, 6 Sep 2016 14:30:07 +0000 (16:30 +0200)]
lavc/mediacodecdec_h264: fix SODB escaping

Fixes escaping of consecutive 0x00, 0x00, 0x0{0-3} sequences.

4 years agoavformat: Export ticks_per_frame in st->codec
Michael Niedermayer [Tue, 6 Sep 2016 16:10:41 +0000 (18:10 +0200)]
avformat: Export ticks_per_frame in st->codec

Fixes regressions with stream copy and output timebase/fps being twice as fine as needed
Makes the timebase and ticks per frame handled identical which should make the
code easier to understand and work with. It does not solve the problem without
st->codec access

Suggested-by: Hendrik Leppkes
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agoswscale: Fix "warning: ISO C90 forbids mixed declarations and code"
Michael Niedermayer [Tue, 6 Sep 2016 23:44:16 +0000 (01:44 +0200)]
swscale: Fix "warning: ISO C90 forbids mixed declarations and code"

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agoavcodec: Fix successfull typo
Michael Niedermayer [Tue, 6 Sep 2016 23:43:07 +0000 (01:43 +0200)]
avcodec: Fix successfull typo

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agolavf/matroskaenc: use mkv_check_tag_name consistently
Rodger Combs [Tue, 6 Sep 2016 03:26:16 +0000 (22:26 -0500)]
lavf/matroskaenc: use mkv_check_tag_name consistently

Previously, we used a different list of checks when deciding whether to
write a set of tags at all than we did when deciding whether to write an
individual tag in the set. This resulted in sometimes writing an empty
tag master and seekhead. Now we use mkv_check_tag_name everywhere, so
if a dictionary is entirely composed of tags we skip, we don't write a
tag master at all.

This affected the test file, since "language" was on one list but not
the other, so we were writing an empty tag master there. The test hash
is updated to reflect that change.

4 years agolavf/matroskaenc: skip writing "duration" tags
Rodger Combs [Tue, 6 Sep 2016 02:43:18 +0000 (21:43 -0500)]
lavf/matroskaenc: skip writing "duration" tags

4 years agolavf/matroskaenc: move skipped metadata keys to separate function
Rodger Combs [Tue, 6 Sep 2016 02:42:24 +0000 (21:42 -0500)]
lavf/matroskaenc: move skipped metadata keys to separate function

4 years agocuvid: Implement flush to support seeking in media players
Philip Langdale [Sun, 4 Sep 2016 16:47:29 +0000 (09:47 -0700)]
cuvid: Implement flush to support seeking in media players

Right now, if we attempt to use cuvid in a media player and then
try to seek, the decoder will happily pass out whatever frames were
already in flight before the seek.

There is both the output queue in our code and some number of frames
within the cuvid decoder that need to be accounted for.

cuvid doesn't support flush, so our only choice is to do a brute-force
re-creation of the decoder, which also implies re-creating the parser,
but this is fine.

The only subtlty is that there is sanity check code in decoder
initialisation that wants to make sure the HWContextFrame hasn't already
been initialised. This is a fair check to do at the beginning but not
after a flush, so it has to be made conditional.

Signed-off-by: Philip Langdale <philipl@overt.org>
Signed-off-by: Timo Rothenpieler <timo@rothenpieler.org>
4 years agocuvid: Add hwaccels and decoders for remaining supported formats
Philip Langdale [Sun, 4 Sep 2016 16:47:28 +0000 (09:47 -0700)]
cuvid: Add hwaccels and decoders for remaining supported formats

cuvid/nvdecode also supports mpeg1, mpeg2, h.263/mpeg4-asp and mjpeg.

It should, in theory, also support wmv3 via the vc1 support, given
that vdpau supports this. However, it failed to play wmv3 samples
which vdpau played correctly, so I'm not sure what to make of it.

Signed-off-by: Philip Langdale <philipl@overt.org>
Signed-off-by: Timo Rothenpieler <timo@rothenpieler.org>
4 years agotests/fate/ffmpeg: add simple ts->avi copy test
Michael Niedermayer [Mon, 5 Sep 2016 17:31:57 +0000 (19:31 +0200)]
tests/fate/ffmpeg: add simple ts->avi copy test

Approved-by: ubitux
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agotests/fate/ffmpeg: add test for mpegts->mxf steram copy (Ticket 4914)
Michael Niedermayer [Mon, 5 Sep 2016 17:12:41 +0000 (19:12 +0200)]
tests/fate/ffmpeg: add test for mpegts->mxf steram copy (Ticket 4914)

Approved-by: ubitux
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agotest/fate: Add Ticket 236 / mov stream copy test
Michael Niedermayer [Mon, 5 Sep 2016 16:47:24 +0000 (18:47 +0200)]
test/fate: Add Ticket 236 / mov stream copy test

Approved-by: ubitux
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agotests/fate-run: add transcode() as a simplified enc_dec()
Michael Niedermayer [Mon, 5 Sep 2016 16:46:16 +0000 (18:46 +0200)]
tests/fate-run: add transcode() as a simplified enc_dec()

Approved-by: ubitux
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agoswscale: add unscaled conversion from yuv420p to p010
Timo Rothenpieler [Fri, 2 Sep 2016 12:18:25 +0000 (14:18 +0200)]
swscale: add unscaled conversion from yuv420p to p010

4 years agoavfilter/fifo: Make independent of the channel layout
Michael Niedermayer [Mon, 5 Sep 2016 23:13:53 +0000 (01:13 +0200)]
avfilter/fifo: Make independent of the channel layout

Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agoavfilter/af_atempo: Make independent of the channel layout
Michael Niedermayer [Mon, 5 Sep 2016 22:37:47 +0000 (00:37 +0200)]
avfilter/af_atempo: Make independent of the channel layout

Reviewed-by: Paul B Mahol <onemda@gmail.com>
Reviewed-by: Pavel Koshevoy <pkoshevoy@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agoavfilter/af_amix: make independent of the channel layout
Michael Niedermayer [Mon, 5 Sep 2016 22:16:54 +0000 (00:16 +0200)]
avfilter/af_amix: make independent of the channel layout

Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agodoc/showspectrum*: Change options order to reflect numeric values.
Carl Eugen Hoyos [Tue, 6 Sep 2016 09:16:19 +0000 (11:16 +0200)]
doc/showspectrum*: Change options order to reflect numeric values.

Fixes ticket #5823.

4 years agoavfilter/vf_owdenoise: hight bit-depth support
Paul B Mahol [Fri, 26 Aug 2016 21:56:38 +0000 (23:56 +0200)]
avfilter/vf_owdenoise: hight bit-depth support

4 years agolavc/avpacket: Fix undefined behaviour, do not pass a null pointer to memcpy().
Carl Eugen Hoyos [Sun, 4 Sep 2016 19:11:02 +0000 (21:11 +0200)]
lavc/avpacket: Fix undefined behaviour, do not pass a null pointer to memcpy().

Fixes ticket #5128.

4 years agoavcodec/pnmdec: fix undefined behaviour
Paul B Mahol [Mon, 5 Sep 2016 08:06:25 +0000 (10:06 +0200)]
avcodec/pnmdec: fix undefined behaviour

Signed-off-by: Paul B Mahol <onemda@gmail.com>
4 years agoMAINTAINERS: Replace AvxSynth Team by Stephen Hutchinson for avisynth.c
Michael Niedermayer [Wed, 31 Aug 2016 20:38:06 +0000 (22:38 +0200)]
MAINTAINERS: Replace AvxSynth Team by Stephen Hutchinson for avisynth.c

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agoavformat/hlsenc: fix incomplete write of subtitle HLS playlist
Franklin Phillips [Fri, 2 Sep 2016 19:20:21 +0000 (20:20 +0100)]
avformat/hlsenc: fix incomplete write of subtitle HLS playlist

This patch is a fix for the bug with ticket number 5812
(https://trac.ffmpeg.org/ticket/5812).

Basically, the bug is that the last segment and the "#EXT-X-ENDLIST"
tag are not being written to the subtitle playlist file when
converting a file with subtitles to the HLS format. The reason for
this seem to be that the filename for the subtitle file is being freed
too early. This solution is simply to free that memory after it's last
use in the "hls_window" function.

Signed-off-by: Franklin Phillips <franklinphillips9p8@inbox.lv>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agoavfilter/vf_gblur: add sigmaV option, different vertical filtering
Paul B Mahol [Sun, 4 Sep 2016 21:57:09 +0000 (23:57 +0200)]
avfilter/vf_gblur: add sigmaV option, different vertical filtering

Signed-off-by: Paul B Mahol <onemda@gmail.com>
4 years agofate: Add test for ticket #5805.
Carl Eugen Hoyos [Sun, 4 Sep 2016 11:50:44 +0000 (13:50 +0200)]
fate: Add test for ticket #5805.

4 years agoavccodec/utvideoenc: support encoding ULY4 and ULH4
Paul B Mahol [Sun, 4 Sep 2016 13:51:33 +0000 (15:51 +0200)]
avccodec/utvideoenc: support encoding ULY4 and ULH4

Signed-off-by: Paul B Mahol <onemda@gmail.com>
4 years agoavfilter/Makefile: move anullsrc and nullsink to correct place
Paul B Mahol [Sun, 4 Sep 2016 13:25:50 +0000 (15:25 +0200)]
avfilter/Makefile: move anullsrc and nullsink to correct place

Signed-off-by: Paul B Mahol <onemda@gmail.com>
4 years agoavfilter/vf_bitplanenoise: silence clang warning, do not truncate value
Paul B Mahol [Sun, 4 Sep 2016 12:58:54 +0000 (14:58 +0200)]
avfilter/vf_bitplanenoise: silence clang warning, do not truncate value

4 years agoavfilter: add gblur filter
Paul B Mahol [Wed, 31 Aug 2016 23:18:45 +0000 (01:18 +0200)]
avfilter: add gblur filter

Signed-off-by: Paul B Mahol <onemda@gmail.com>
4 years agodoc/filters: improve weave example
Paul B Mahol [Sun, 4 Sep 2016 12:51:04 +0000 (14:51 +0200)]
doc/filters: improve weave example

4 years agovf_colorspace: Allow overriding input color properties
Vittorio Giovara [Sat, 3 Sep 2016 13:19:35 +0000 (15:19 +0200)]
vf_colorspace: Allow overriding input color properties

The filter needs input frames with color properties filled out by
the decoder. Since this is not always possible, add input options to
the filter so that user may override color space, color primaries,
transfer characteristics, and color range, as well as a generic option
to set all properties at once.

Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
4 years agofate: add 12bpp sample
Christophe Gisquet [Tue, 13 Oct 2015 19:21:41 +0000 (21:21 +0200)]
fate: add 12bpp sample

Allows testing simple_idct12 correctness/bitexactness, as the sample
was generated using faani as idct.

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agoconfigure: Remove fifo muxers dependency on pthreads.
Matt Oliver [Mon, 29 Aug 2016 06:56:32 +0000 (16:56 +1000)]
configure: Remove fifo muxers dependency on pthreads.

Signed-off-by: Matt Oliver <protogonoi@gmail.com>