ffmpeg.git
4 years agodoc/general.texi: mention MLP/TrueHD encoding support
James Almer [Sun, 18 Sep 2016 05:01:15 +0000 (02:01 -0300)]
doc/general.texi: mention MLP/TrueHD encoding support

Signed-off-by: James Almer <jamrial@gmail.com>
4 years agoavformat/http: Fix #ifdef FF_API_HTTP_USER_AGENT
Michael Niedermayer [Sat, 17 Sep 2016 17:04:45 +0000 (19:04 +0200)]
avformat/http: Fix #ifdef FF_API_HTTP_USER_AGENT

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agodoc/filters: add two lut2 examples
Paul B Mahol [Sat, 17 Sep 2016 17:06:36 +0000 (19:06 +0200)]
doc/filters: add two lut2 examples

Signed-off-by: Paul B Mahol <onemda@gmail.com>
4 years agolavc: bump minor (after adding TrueHD and MLP encoders)
Rostislav Pehlivanov [Sat, 17 Sep 2016 14:02:22 +0000 (15:02 +0100)]
lavc: bump minor (after adding TrueHD and MLP encoders)

Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com>
4 years agoavfilter/vf_overlay: add YUVA422P to alpha_pix_fmts
Paul B Mahol [Sat, 17 Sep 2016 13:35:09 +0000 (15:35 +0200)]
avfilter/vf_overlay: add YUVA422P to alpha_pix_fmts

Now yuv422 output format gives similar expected output as other output formats.

Signed-off-by: Paul B Mahol <onemda@gmail.com>
4 years agoavfilter/vf_overlay: support J formats too
Paul B Mahol [Sat, 17 Sep 2016 13:10:09 +0000 (15:10 +0200)]
avfilter/vf_overlay: support J formats too

Signed-off-by: Paul B Mahol <onemda@gmail.com>
4 years agoChangelog: update with TrueHD and MLP encoders
Rostislav Pehlivanov [Sat, 17 Sep 2016 12:41:39 +0000 (13:41 +0100)]
Changelog: update with TrueHD and MLP encoders

Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com>
4 years agomlpenc: Working MLP/TrueHD encoder
Jai Luthra [Tue, 30 Aug 2016 10:23:02 +0000 (15:53 +0530)]
mlpenc: Working MLP/TrueHD encoder

* Multichannel support for TrueHD is experimental

    There should be downmix substreams present for 2+ channel bitstreams,
    but ffmpeg decoder doesn't need it. Will add support for this soon.

* There might be lossless check failures on LFE channels

* 32-bit sample support has been removed for now, will add it later

    While testing, some samples gave lossless check failures when enforcing
    s32. Probably this will also get solved with the LFE issues.

Signed-off-by: Jai Luthra <me@jailuthra.in>
4 years agoavcodec/cuvid: Check for non 420 chroma formats - they aren't supported
Philip Langdale [Thu, 15 Sep 2016 02:56:08 +0000 (19:56 -0700)]
avcodec/cuvid: Check for non 420 chroma formats - they aren't supported

Despite the video parser seeming to correctly handle 422 and 444
chroma formats, the video decoder fails miserably to actually
decode frames - even though no errors are ever returned; you just
get frames showing unintialized garbage.

Signed-off-by: Philip Langdale <philipl@overt.org>
Signed-off-by: Timo Rothenpieler <timo@rothenpieler.org>
4 years agoavcodec/cuvid: Fully re-initialize the parser after a flush.
Philip Langdale [Thu, 15 Sep 2016 02:56:07 +0000 (19:56 -0700)]
avcodec/cuvid: Fully re-initialize the parser after a flush.

I'm not really sure how this worked at all before, but we do need to
reinitalize the parser with the stream extradata.

Signed-off-by: Philip Langdale <philipl@overt.org>
Signed-off-by: Timo Rothenpieler <timo@rothenpieler.org>
4 years agoavfilter/vf_unsharp: limit matrix size in either direction to 23
Paul B Mahol [Sat, 17 Sep 2016 11:55:06 +0000 (13:55 +0200)]
avfilter/vf_unsharp: limit matrix size in either direction to 23

Anything bigger is not supported anyway.

Signed-off-by: Paul B Mahol <onemda@gmail.com>
4 years agoavfilter/vf_unsharp: check if scalebits is too high
Paul B Mahol [Sat, 17 Sep 2016 11:47:17 +0000 (13:47 +0200)]
avfilter/vf_unsharp: check if scalebits is too high

Otherwise filter would happily give overflows and produce useless output.

Signed-off-by: Paul B Mahol <onemda@gmail.com>
4 years agolavf/http: deprecate user-agent option
Steven Liu [Fri, 16 Sep 2016 02:42:34 +0000 (10:42 +0800)]
lavf/http: deprecate user-agent option

4 years agolavc/libvpxenc: Avoid vp8 transparency encoding with auto-alt-ref.
Carl Eugen Hoyos [Fri, 16 Sep 2016 12:21:09 +0000 (14:21 +0200)]
lavc/libvpxenc: Avoid vp8 transparency encoding with auto-alt-ref.

Fixes ticket #5815.

4 years agodoc/muxers: add flv muxer document into doc/muxers
Steven Liu [Fri, 16 Sep 2016 00:58:33 +0000 (08:58 +0800)]
doc/muxers: add flv muxer document into doc/muxers

add flvflags aac_seq_header_detect and flvflags no_sequence_end
document into doc/muxers

Reviewed-by: Lou Logan <lou@lrcd.com>
4 years agoswscale: fix for sliced scaling artifacts
Pedro Arthur [Thu, 8 Sep 2016 18:57:40 +0000 (15:57 -0300)]
swscale: fix for sliced scaling artifacts

Signed-off-by: Pedro Arthur <bygrandao@gmail.com>
4 years agoavfilter/vf_lut2: also export video input bit depth
Paul B Mahol [Fri, 16 Sep 2016 10:35:55 +0000 (12:35 +0200)]
avfilter/vf_lut2: also export video input bit depth

Signed-off-by: Paul B Mahol <onemda@gmail.com>
4 years agoavformat/movenc: Make the packet check more tolerant
Michael Niedermayer [Thu, 15 Sep 2016 23:48:36 +0000 (01:48 +0200)]
avformat/movenc: Make the packet check more tolerant

Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agoavformat/movenc: Check packet in mov_write_single_packet() too
Michael Niedermayer [Thu, 15 Sep 2016 21:52:54 +0000 (23:52 +0200)]
avformat/movenc: Check packet in mov_write_single_packet() too

Fixes assertion failure

Found-by: durandal117
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agoavformat/movenc: Factor check_pkt() out
Michael Niedermayer [Thu, 15 Sep 2016 21:52:42 +0000 (23:52 +0200)]
avformat/movenc: Factor check_pkt() out

Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agolibavformat/webm_chunk: Option to specify HTTP header
Vignesh Venkatasubramanian [Thu, 15 Sep 2016 21:29:24 +0000 (14:29 -0700)]
libavformat/webm_chunk: Option to specify HTTP header

Add an option to specify HTTP header in the WebM Chunk Muxer (this
works the same way as the 'method' parameter in the HLS muxer).

Signed-off-by: Vignesh Venkatasubramanian <vigneshv@google.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agolavc: add hevc mediacodec decoder
Matthieu Bouron [Mon, 5 Sep 2016 15:08:41 +0000 (17:08 +0200)]
lavc: add hevc mediacodec decoder

4 years agoavcodec/adpcm: clip step for ADPCM MTAF decoder
Paul B Mahol [Thu, 15 Sep 2016 15:24:40 +0000 (17:24 +0200)]
avcodec/adpcm: clip step for ADPCM MTAF decoder

Signed-off-by: Paul B Mahol <onemda@gmail.com>
4 years agoavformat/msf: add support for ATRAC3 codec
Paul B Mahol [Thu, 15 Sep 2016 14:57:48 +0000 (16:57 +0200)]
avformat/msf: add support for ATRAC3 codec

Signed-off-by: Paul B Mahol <onemda@gmail.com>
4 years agolibavcodec/qsvdec_h2645.c: drop executable permission
Moritz Barsnick [Thu, 15 Sep 2016 13:49:38 +0000 (15:49 +0200)]
libavcodec/qsvdec_h2645.c: drop executable permission

Accidentally set in b93e2233155e6c1f0a074cad4135a70d9d2934d3.

Signed-off-by: Moritz Barsnick <barsnick@gmx.net>
4 years agolavf/rtsp: Fix a crash with the RTSP muxer.
Martin Storsjö [Thu, 15 Sep 2016 11:50:57 +0000 (13:50 +0200)]
lavf/rtsp: Fix a crash with the RTSP muxer.

Introduced in 00e122bc / bc2a3296
The whole block that the statement was added to is only
relevant when used as a demuxer, but the other statements
there have had other if statements guarding them. Make
sure to only run this whole block if being used as a
demuxer.

Fixes ticket #5844.

4 years agoavcodec/(e)ac3: Fix target_level for EAC3.
Nikolas Bowe [Fri, 9 Sep 2016 19:48:52 +0000 (12:48 -0700)]
avcodec/(e)ac3: Fix target_level for EAC3.

Currently when using target_level with EAC3 it produces silence. This small patch fixes target_level for decoding EAC3.

Example:
ffmpeg -y -i /tmp/test.wav -acodec eac3 -dialnorm -14 -ac 6 -b:a 384000 /tmp/test.m2ts
ffmpeg -y -target_level -24 -i /tmp/test.m2ts -acodec pcm_s16le -f matroska /tmp/out.mkv
ffplay /tmp/out.mkv

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agoavformat/hlsenc: Emulate strftime("%z") using other functions if it does not work
Michael Niedermayer [Wed, 14 Sep 2016 23:01:51 +0000 (01:01 +0200)]
avformat/hlsenc: Emulate strftime("%z") using other functions if it does not work

This should fix the code on windows

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agovf_colorspace: Add modern names for color range option
Vittorio Giovara [Wed, 14 Sep 2016 21:09:03 +0000 (23:09 +0200)]
vf_colorspace: Add modern names for color range option

Allows to use values returned from API and from ffprobe directly.

Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
4 years agoavcodec/h264_parser: fix for possible overflow
Paul B Mahol [Wed, 14 Sep 2016 19:14:07 +0000 (21:14 +0200)]
avcodec/h264_parser: fix for possible overflow

Signed-off-by: Paul B Mahol <onemda@gmail.com>
4 years agoavcodec/h264_parser: set missing pts for top/bottom field frames
Paul B Mahol [Wed, 14 Sep 2016 14:35:48 +0000 (16:35 +0200)]
avcodec/h264_parser: set missing pts for top/bottom field frames

Adopted from 4eb49fdde8f84d54a763cfb5d355527b525ee2bf revert.

Signed-off-by: Paul B Mahol <onemda@gmail.com>
4 years agolavc: Enable a53cc by default for x264 and qsv_h264.
Carl Eugen Hoyos [Fri, 9 Sep 2016 15:56:46 +0000 (17:56 +0200)]
lavc: Enable a53cc by default for x264 and qsv_h264.

4 years agoavcodec/g726: Add missing ADDB output mask
Michael Niedermayer [Wed, 14 Sep 2016 11:06:53 +0000 (13:06 +0200)]
avcodec/g726: Add missing ADDB output mask

Fixes: 1.poc
Fixes out of array read

Found-by: 连一汉 <lianyihan@360.cn>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agoavformat/utils: fix timebase error in avformat_seek_file()
Xinzheng Zhang [Wed, 14 Sep 2016 08:13:45 +0000 (16:13 +0800)]
avformat/utils: fix timebase error in avformat_seek_file()

When there is only one stream and stream_index has not specified,
The ts has been transferd by the timebase of stream0 without modifying the stream_index
In this condation it cause seek failure.

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agoavformat/flvenc: add no_sequence_end flags for flvflags
Steven Liu [Wed, 14 Sep 2016 02:00:52 +0000 (10:00 +0800)]
avformat/flvenc: add no_sequence_end flags for flvflags

when split flv file by flv format at first, and cat flvs file
into one flv file, the flv sequence end is be used,
then the whole flv have many flv sequence end TAG.
this flags can give user an option to ignore write sequence end TAG

Signed-off-by: Steven Liu <lingjiujianke@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agoavformat/flvenc: Add () around &
Michael Niedermayer [Wed, 14 Sep 2016 00:31:11 +0000 (02:31 +0200)]
avformat/flvenc: Add () around &

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agolavf/utils: add missing ismv in MOV-like formats
Clément Bœsch [Wed, 14 Sep 2016 08:00:08 +0000 (10:00 +0200)]
lavf/utils: add missing ismv in MOV-like formats

4 years agolavf/utils: simplify matching MOV-like formats
Clément Bœsch [Wed, 14 Sep 2016 07:59:22 +0000 (09:59 +0200)]
lavf/utils: simplify matching MOV-like formats

4 years agolavf: add avformat_transfer_internal_stream_timing_info() and use it in ffmpeg
Clément Bœsch [Fri, 9 Sep 2016 14:38:21 +0000 (16:38 +0200)]
lavf: add avformat_transfer_internal_stream_timing_info() and use it in ffmpeg

In lavf we have access to st->internal->avctx so it's a better place
than in ffmpeg*.c and will allow moving to codecpar.

4 years agoffmpeg: copy trailing_padding when using -acodec copy
Jon Toohill [Mon, 15 Aug 2016 20:13:07 +0000 (13:13 -0700)]
ffmpeg: copy trailing_padding when using -acodec copy

Signed-off-by: James Almer <jamrial@gmail.com>
4 years agoavformat/flvenc: add FLVFlags for flvflags options
Steven Liu [Tue, 13 Sep 2016 13:59:56 +0000 (21:59 +0800)]
avformat/flvenc: add FLVFlags for flvflags options

add FLVFlags type, be used to add new FLVFlags options

Signed-off-by: Steven Liu <lingjiujianke@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agoavformat/hlsenc: Assume UTC if "%z" is unsupported in strftime()
Michael Niedermayer [Tue, 13 Sep 2016 21:06:06 +0000 (23:06 +0200)]
avformat/hlsenc: Assume UTC if "%z" is unsupported in strftime()

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agoavformat/hlsenc: Avoid "%T" "%F" in strftime() to improve compatibility
Michael Niedermayer [Tue, 13 Sep 2016 20:55:12 +0000 (22:55 +0200)]
avformat/hlsenc: Avoid "%T" "%F" in strftime() to improve compatibility

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agoavfilter/af_amerge: allow merging 1 input only
Marton Balint [Mon, 5 Sep 2016 19:51:21 +0000 (21:51 +0200)]
avfilter/af_amerge: allow merging 1 input only

Useful when the amerge filter parameters are generated from a script based on
the number of input streams, by allowing 1 input it does not have to be handled
specially.

The split filter also allows 1 output, so it is more consistent to allow
merging 1 input as well.

Reviewed-by: Nicolas George <george@nsup.org>
Signed-off-by: Marton Balint <cus@passwd.hu>
4 years agovf_colorspace: Add BT-names for gamma22/28 transfer option
Vittorio Giovara [Mon, 12 Sep 2016 17:44:02 +0000 (19:44 +0200)]
vf_colorspace: Add BT-names for gamma22/28 transfer option

Allows to use values returned from API and from ffprobe directly.

Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
4 years agoavcodec/mpeg12dec: add comments documenting the format of the DVD CC user-data packet.
Jonathan Campbell [Mon, 12 Sep 2016 19:34:48 +0000 (12:34 -0700)]
avcodec/mpeg12dec: add comments documenting the format of the DVD CC user-data packet.

this is to aid development and maintenance of that code.

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agolavf: add a flag to enable/disable automatic bitstream filtering
Rodger Combs [Thu, 7 Apr 2016 07:59:39 +0000 (02:59 -0500)]
lavf: add a flag to enable/disable automatic bitstream filtering

This is mostly useful for muxers that wrap other muxers, such as dashenc
and segment. The actual duplicated bitstream filtering is largely harmless,
but delaying the header can cause problems when the muxer intended the header
to be written to a separate file.

4 years agoavcodec/avpacket: clear side_data_elems
Michael Niedermayer [Mon, 12 Sep 2016 11:13:42 +0000 (13:13 +0200)]
avcodec/avpacket: clear side_data_elems

Fixes null pointer dereference

Found-by: 连一汉 <lianyihan@360.cn>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agoass_split: reindent
Rodger Combs [Sat, 10 Sep 2016 05:29:50 +0000 (00:29 -0500)]
ass_split: reindent

4 years agoass_split: fix handling of streams with no [Events] or Format: line
Rodger Combs [Fri, 4 Dec 2015 12:42:48 +0000 (06:42 -0600)]
ass_split: fix handling of streams with no [Events] or Format: line

4 years agoavfilter/vf_convolution: add slice threading support
Paul B Mahol [Mon, 12 Sep 2016 12:23:38 +0000 (14:23 +0200)]
avfilter/vf_convolution: add slice threading support

Signed-off-by: Paul B Mahol <onemda@gmail.com>
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>