]> git.sesse.net Git - ffmpeg/log
ffmpeg
7 years agoavfilter/tests/integral: Remove unused variables
Michael Niedermayer [Sat, 24 Sep 2016 17:31:55 +0000 (19:31 +0200)]
avfilter/tests/integral: Remove unused variables

Reviewed-by: Clément Bœsch <u@pkh.me>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
7 years agoffmpeg: switch to the new BSF API
Clément Bœsch [Wed, 21 Sep 2016 13:39:16 +0000 (15:39 +0200)]
ffmpeg: switch to the new BSF API

This commit is initially largely based on commit 4426540 from Anton
Khirnov <anton@khirnov.net> and two following fixes (80fb19b and
fe7b21c) which were previously skipped respectively in 98e3153c9ee36e,
and 7fe7cdc.

mpeg4-bsf-unpack-bframes FATE reference is updated because the bsf
filter now actually fixes the extradata (mpeg4_unpack_bframes_init()
changing one byte is now honored on the output extradata).

The FATE references for remove_extra change because the packet flags
were wrong and the keyframes weren't marked, causing the bsf relying on
these proprieties to not actually work as intended.

The following was fixed by James Almer:

The filter option arguments are now also parsed correctly.

A hack to propagate extradata changed by bitstream filters after the
first av_bsf_receive_packet() call is added to maintain the current
behavior. This was previously done by av_bitstream_filter_filter() and
is needed for the aac_adtstoasc bsf.

The exit_on_error was not being checked anymore, and led to an exit
error in the last frame of h264_mp4toannexb test. Restoring this
behaviour prevents erroring out. The test is still changed as a result
due to the badly filtered frame now not being written after the failure.

Signed-off-by: Clément Bœsch <u@pkh.me>
Signed-off-by: James Almer <jamrial@gmail.com>
7 years agolavd/sdl2: Fix 32bit rgb formats on little-endian hardware.
Carl Eugen Hoyos [Sat, 24 Sep 2016 16:56:40 +0000 (18:56 +0200)]
lavd/sdl2: Fix 32bit rgb formats on little-endian hardware.

7 years agolavd/sdl2: Move unsupported formats SDL_PIXELFORMAT_xxx888 updwards.
Carl Eugen Hoyos [Sat, 24 Sep 2016 16:35:15 +0000 (18:35 +0200)]
lavd/sdl2: Move unsupported formats SDL_PIXELFORMAT_xxx888 updwards.

There is a paragraph for unsupported SDL formats.

7 years agolavf/aacdec: Do not autodetect a single frame inside the file.
Carl Eugen Hoyos [Sat, 24 Sep 2016 13:09:27 +0000 (15:09 +0200)]
lavf/aacdec: Do not autodetect a single frame inside the file.

7 years agolavd: drop SDL1 device and SDL1 support
Josh de Kock [Thu, 22 Sep 2016 18:20:24 +0000 (19:20 +0100)]
lavd: drop SDL1 device and SDL1 support

Signed-off-by: Josh de Kock <josh@itanimul.li>
7 years agoffplay: add SDL2 support
Marton Balint [Tue, 23 Feb 2016 20:43:41 +0000 (20:43 +0000)]
ffplay: add SDL2 support

This commit also drops SDL1 support for ffplay.

Tested-by: James Almer <jamrial@gmail.com> (Windows, mingw-w64)
Signed-off-by: Josh de Kock <josh@itanimul.li>
7 years agolavd/opengl: use SDL2
Lukasz Marek [Sun, 18 Sep 2016 17:13:12 +0000 (19:13 +0200)]
lavd/opengl: use SDL2

Signed-off-by: Lukasz Marek <lukasz.m.luki2@gmail.com>
Signed-off-by: Josh de Kock <josh@itanimul.li>
7 years agoMAINTAINERS: update my entries
Josh de Kock [Wed, 14 Sep 2016 21:43:33 +0000 (22:43 +0100)]
MAINTAINERS: update my entries

Acked-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: Josh de Kock <josh@itanimul.li>
7 years agolavd: Add SDL2 output device
Josh de Kock [Wed, 24 Feb 2016 23:31:02 +0000 (23:31 +0000)]
lavd: Add SDL2 output device

Acked-by: Michael Niedermayer
Signed-off-by: Josh de Kock <josh@itanimul.li>
7 years agolavfi: add nlmeans filter
Clément Bœsch [Wed, 30 Sep 2015 18:29:30 +0000 (20:29 +0200)]
lavfi: add nlmeans filter

Fixes Ticket #4910

7 years agoavformat/hls: Fix handling of EXT-X-BYTERANGE streams over 2GB
Anssi Hannula [Sat, 24 Sep 2016 06:29:03 +0000 (09:29 +0300)]
avformat/hls: Fix handling of EXT-X-BYTERANGE streams over 2GB

Replace uses of atoi() with strtoll() when trying to read values into
int64_t variables.

Fixes Kodi trac #16926:
http://trac.kodi.tv/ticket/16926

7 years agoavformat/hlsenc: refine EXT-X-BYTERANGE support for segments
Steven Liu [Sun, 18 Sep 2016 23:00:42 +0000 (07:00 +0800)]
avformat/hlsenc: refine EXT-X-BYTERANGE support for segments

refine EXT-X-BYTERANGE tag,
the spec link:
https://tools.ietf.org/html/draft-pantos-http-live-streaming-19#section-4.3.2.2
the apple doc:
https://developer.apple.com/library/ios/technotes/tn2288/_index.html#
//apple_ref/doc/uid/DTS40012238-CH1-BYTE_RANGE_SUPPORT_FOR_SEGMENTS

command line:
./ffmpeg -i ~/Movies/objectC/a.mp4 -c copy -f hls -hls_time 7
 -hls_list_size 0 -hls_segment_size 2500000 -t 40 output-test.m3u8
output:
localhost:ffmpeg liuqi$ ll *.ts ;cat output-test.m3u8
 -rw-r--r--  1 liuqi  staff  2792176  9 12 14:44 output-test0.ts
 -rw-r--r--  1 liuqi  staff  3112528  9 12 14:44 output-test3.ts
 -rw-r--r--  1 liuqi  staff  3377420  9 12 14:44 output-test6.ts
 -rw-r--r--  1 liuqi  staff  1228016  9 12 14:44 output-test7.ts
 #EXTM3U
 #EXT-X-VERSION:4
 #EXT-X-TARGETDURATION:10
 #EXT-X-MEDIA-SEQUENCE:0
 #EXTINF:9.021000,
 #EXT-X-BYTERANGE:1334988@0
 output-test0.ts
 #EXTINF:3.000000,
 #EXT-X-BYTERANGE:721356@1334988
 output-test0.ts
 #EXTINF:3.000000,
 #EXT-X-BYTERANGE:735832@2056344
 output-test0.ts
 #EXTINF:6.000000,
 #EXT-X-BYTERANGE:1645940@0
 output-test3.ts
 #EXTINF:3.000000,
 #EXT-X-BYTERANGE:715152@1645940
 output-test3.ts
 #EXTINF:3.000000,
 #EXT-X-BYTERANGE:751436@2361092
 output-test3.ts
 #EXTINF:9.000000,
 #EXT-X-BYTERANGE:3377420@0
 output-test6.ts
 #EXTINF:3.960000,
 #EXT-X-BYTERANGE:1228016@0
 output-test7.ts
 #EXT-X-ENDLIST
 localhost:ffmpeg liuqi$

 ticket-id: #5839

Signed-off-by: Steven Liu <lingjiujianke@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
7 years agoffprobe.c: Indicate decode-but-discard packets when doing -show_packets.
Sasi Inguva [Thu, 15 Sep 2016 20:36:19 +0000 (13:36 -0700)]
ffprobe.c: Indicate decode-but-discard packets when doing -show_packets.

Signed-off-by: Sasi Inguva <isasi@google.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
7 years agofate: add Test for h264_mp4toannexb (ticket2991)
Michael Niedermayer [Fri, 23 Sep 2016 19:25:32 +0000 (21:25 +0200)]
fate: add Test for h264_mp4toannexb (ticket2991)

7 years agoavcodec/cavsdsp: use av_clip_uint8() for idct
Michael Niedermayer [Mon, 19 Sep 2016 13:25:38 +0000 (15:25 +0200)]
avcodec/cavsdsp: use av_clip_uint8() for idct

Fixes out of array read
Fixes: 1.swf
Found-by: 连一汉 <lianyihan@360.cn>
Tested-by: 连一汉 <lianyihan@360.cn>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
7 years agoavcodec/remove_extradata_bsf: Fix AVoption parameter max value
James Almer [Fri, 23 Sep 2016 14:13:48 +0000 (16:13 +0200)]
avcodec/remove_extradata_bsf: Fix AVoption parameter max value

7 years agotests/fate/ffmpeg: Remove dead automatic remove extradata test update the keyframe...
Michael Niedermayer [Fri, 23 Sep 2016 14:26:56 +0000 (16:26 +0200)]
tests/fate/ffmpeg: Remove dead automatic remove extradata test update the keyframe test

Found-by: jamrial
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
7 years agox86/h264_weight: use appropriate register size for weight parameters
Hendrik Leppkes [Fri, 23 Sep 2016 07:52:48 +0000 (09:52 +0200)]
x86/h264_weight: use appropriate register size for weight parameters

Fixes trac 5579

Reviewed-by: Ronald S. Bultje <rsbultje@gmail.com>
Acked-by: Michael Niedermayer <michael@niedermayer.cc>
7 years agotests/fate: Add fate-ffmpeg-bsf-remove-* tests
Michael Niedermayer [Fri, 23 Sep 2016 10:57:33 +0000 (12:57 +0200)]
tests/fate: Add fate-ffmpeg-bsf-remove-* tests

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
7 years agocompat/cuda: convert to unix line endings
Timo Rothenpieler [Fri, 23 Sep 2016 09:43:00 +0000 (11:43 +0200)]
compat/cuda: convert to unix line endings

7 years agoavcodec/cuvid: mark as avoid for probing
Timo Rothenpieler [Thu, 22 Sep 2016 10:10:31 +0000 (12:10 +0200)]
avcodec/cuvid: mark as avoid for probing

7 years agoavformat/utils: avoid using marked decoders for probing
Timo Rothenpieler [Thu, 22 Sep 2016 10:10:15 +0000 (12:10 +0200)]
avformat/utils: avoid using marked decoders for probing

Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
7 years agoavcodec: add new AVOID_PROBING capability
Timo Rothenpieler [Thu, 22 Sep 2016 10:09:26 +0000 (12:09 +0200)]
avcodec: add new AVOID_PROBING capability

Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
7 years agofate: update fate-source reference file
James Almer [Fri, 23 Sep 2016 02:55:31 +0000 (23:55 -0300)]
fate: update fate-source reference file

Signed-off-by: James Almer <jamrial@gmail.com>
7 years agoavcodec/h264: Use ptrdiff_t for (bi)weight functions
Michael Niedermayer [Wed, 21 Sep 2016 01:34:51 +0000 (03:34 +0200)]
avcodec/h264: Use ptrdiff_t for (bi)weight functions

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
7 years agocuvid: Pass bit depth information to decoder
Philip Langdale [Sat, 3 Sep 2016 19:52:52 +0000 (12:52 -0700)]
cuvid: Pass bit depth information to decoder

Although cuvid can only output 8bit, it can consume HEVC Main10 if
the bit depth is set properly. In cases where >8bit is not supported,
this change is still beneficial as the decoder will fail to be
created instead of plowing throw and decoding as 8bit.

7 years agocuvid: Use bundled headers
Philip Langdale [Wed, 21 Sep 2016 04:36:00 +0000 (21:36 -0700)]
cuvid: Use bundled headers

We need to remove the dynlink fanciness and replace it with normal
function prototypes and update the include paths and configure logic.

We don't need to explicitly check for PICPARMS now - they're going
to be there.

7 years agocuvid: Add MIT licenced nvcuid headers from Video SDK 7.0
Philip Langdale [Wed, 21 Sep 2016 04:28:15 +0000 (21:28 -0700)]
cuvid: Add MIT licenced nvcuid headers from Video SDK 7.0

For unknown reasons, the only accurately descriptive version of
cuviddec.h is in the Video SDK - the one in CUDA 7.5 lacks vp8
PICPARAMS and the vp9 struct definition is inaccurate. The CUDA 8 RC
includes an ancient version of this file from many many years go.

However, the one in the Video SDK is modified to work through a
dynamic link mechanism which we don't really want to use, so the
next change will modify the files to just declare functions in
the normal way.

I've split the changes so it's clear to see what changed between
the original files and ones that work for us.

7 years agoavformat/movenc: write pasp atom even if sar.num == sar.den
Paul B Mahol [Tue, 20 Sep 2016 12:48:44 +0000 (14:48 +0200)]
avformat/movenc: write pasp atom even if sar.num == sar.den

Signed-off-by: Paul B Mahol <onemda@gmail.com>
7 years agoavformat/utils: force native h264 decoder for probing
Timo Rothenpieler [Wed, 21 Sep 2016 17:00:46 +0000 (19:00 +0200)]
avformat/utils: force native h264 decoder for probing

Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
7 years agolavc/avpacket: Fix undefined behaviour, do not pass a null pointer to memcpy().
Carl Eugen Hoyos [Wed, 21 Sep 2016 23:03:55 +0000 (01:03 +0200)]
lavc/avpacket: Fix undefined behaviour, do not pass a null pointer to memcpy().

Fixes ticket #5857.

7 years agocrystalhd: Use up-to-date bsf API
Philip Langdale [Sun, 18 Sep 2016 19:43:25 +0000 (12:43 -0700)]
crystalhd: Use up-to-date bsf API

Although the old API is supposed to be functional, the crystalhd
decoder is currently not working for non-annex.b h.264 content.

So, let's update to the modern API and make it work again.

Signed-off-by: Philip Langdale <philipl@overt.org>
7 years agoavcodec/cuvid: add support for hardware deinterlacing
Timo Rothenpieler [Sun, 18 Sep 2016 00:42:52 +0000 (02:42 +0200)]
avcodec/cuvid: add support for hardware deinterlacing

Currently does not work with the ffmpeg cli tool, due do it using the
old one in one out API.
Anything using the new API, like mpv, can make use of it, provided it is
prepared for a decoder modifying the framerate and outputing multiple
frames per input. FFmpeg itself is not.

7 years agoavcodec/cuvid: implement new send_packet/receive_frame api
Timo Rothenpieler [Sat, 17 Sep 2016 22:52:10 +0000 (00:52 +0200)]
avcodec/cuvid: implement new send_packet/receive_frame api

7 years agoavcodec/mlz: Check output chars before using it
Michael Niedermayer [Thu, 8 Sep 2016 17:55:24 +0000 (19:55 +0200)]
avcodec/mlz: Check output chars before using it

Fixes hypothetical integer overflow

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
7 years agoavcodec/mlz: Remove 'l' postfixes from numbers
Michael Niedermayer [Fri, 26 Aug 2016 21:27:08 +0000 (23:27 +0200)]
avcodec/mlz: Remove 'l' postfixes from numbers

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
7 years agoffmpeg: switch to codecpar
Clément Bœsch [Thu, 1 Sep 2016 14:48:45 +0000 (16:48 +0200)]
ffmpeg: switch to codecpar

This commit is largely based on commit 15e84ed3 from Anton Khirnov
<anton@khirnov.net> which was previously skipped in bbf5ef9d.

There are still a bunch of things raising codecpar related warnings that
need fixing, such as:
- the use of codec->debug in the interactive debug mode
- read_ffserver_streams(): it's probably broken now but there is no test
- lowres stuff
- codec copy apparently required by bitstream filters

The matroska references are updated because they now properly forward
the field_order (previously unknown, now progressive).

Thanks to James Almer for fixing a bunch of FATE issues in this commit.

Signed-off-by: Clément Bœsch <clement@stupeflix.com>
Signed-off-by: James Almer <jamrial@gmail.com>
7 years agoavcodec/on2avc: add 0x500 stereo support and improve 0x500 mono support
Paul B Mahol [Wed, 21 Sep 2016 12:25:50 +0000 (14:25 +0200)]
avcodec/on2avc: add 0x500 stereo support and improve 0x500 mono support

0x500 can be stereo.
0x500 mono can use extended window types.

Signed-off-by: Paul B Mahol <onemda@gmail.com>
7 years agoavcodec/dds: add support for 4bpp format
Paul B Mahol [Wed, 21 Sep 2016 11:40:04 +0000 (13:40 +0200)]
avcodec/dds: add support for 4bpp format

Signed-off-by: Paul B Mahol <onemda@gmail.com>
7 years agoavfilter/drawutils: allow drawing opaque text on transparent background
Paul B Mahol [Tue, 13 Sep 2016 23:37:13 +0000 (01:37 +0200)]
avfilter/drawutils: allow drawing opaque text on transparent background

Signed-off-by: Paul B Mahol <onemda@gmail.com>
7 years agotest/fate: add multi component mxf test
Mark Reid [Sun, 18 Sep 2016 21:11:35 +0000 (14:11 -0700)]
test/fate: add multi component mxf test

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
7 years agoavformat/mxfdec: use first valid sourceclip found if material track has multiple...
Mark Reid [Sun, 18 Sep 2016 21:11:34 +0000 (14:11 -0700)]
avformat/mxfdec: use first valid sourceclip found if material track has multiple components

This commit fixes a issue with mxf footage having multiple
components on a material track.

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
7 years agoavcodec/avrndec: Remove obsolete FIXME
Michael Niedermayer [Tue, 20 Sep 2016 11:44:01 +0000 (13:44 +0200)]
avcodec/avrndec: Remove obsolete FIXME

This FIXME probably meant to suggest to use a AVFrame that no longer
exists in the context.

Found-by: durandal117
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
7 years agofate: add aac_adtstoasc test (Ticket 3715)
Michael Niedermayer [Tue, 20 Sep 2016 13:26:03 +0000 (15:26 +0200)]
fate: add aac_adtstoasc test (Ticket 3715)

7 years agofate: Add rgb24-mkv test
Michael Niedermayer [Tue, 20 Sep 2016 03:21:51 +0000 (05:21 +0200)]
fate: Add rgb24-mkv test

7 years agolavc/rscc: Support pal8 in rscc.
Carl Eugen Hoyos [Mon, 19 Sep 2016 21:26:06 +0000 (23:26 +0200)]
lavc/rscc: Support pal8 in rscc.

Fixes the colours of the sample for ticket #5611.

7 years agodoc/encoders: minor aac encoder formatting improvements
Moritz Barsnick [Sun, 18 Sep 2016 21:51:48 +0000 (23:51 +0200)]
doc/encoders: minor aac encoder formatting improvements

Also corrected a line's level.

Signed-off-by: Moritz Barsnick <barsnick@gmx.net>
7 years agolavf/mov: Add support for edit list parsing.
Sasi Inguva [Mon, 19 Sep 2016 05:09:03 +0000 (22:09 -0700)]
lavf/mov: Add support for edit list parsing.

Signed-off-by: Sasi Inguva <isasi@google.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
7 years agoavcodec/utils: If using discard frame flag, ignore skip_samples set by the decoder
Sasi Inguva [Mon, 19 Sep 2016 05:09:03 +0000 (22:09 -0700)]
avcodec/utils: If using discard frame flag, ignore skip_samples set by the decoder

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
7 years agolavf/utils: Support av_index_search_timestamp in case of AVIndexEntry with discarded...
Sasi Inguva [Thu, 15 Sep 2016 20:36:18 +0000 (13:36 -0700)]
lavf/utils: Support av_index_search_timestamp in case of AVIndexEntry with discarded packets.

Signed-off-by: Sasi Inguva <isasi@google.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
7 years agolavc: Add a flag in AVPacket to discard packet after decoding. Discard frames after...
Sasi Inguva [Thu, 15 Sep 2016 20:36:16 +0000 (13:36 -0700)]
lavc: Add a flag in AVPacket to discard packet after decoding. Discard frames after decoding based on the flag.

Signed-off-by: Sasi Inguva <isasi@google.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
7 years agoavformat/avframe.h: Add a flag in AVIndexEntry to discard frame after decoding.
Sasi Inguva [Thu, 15 Sep 2016 20:36:15 +0000 (13:36 -0700)]
avformat/avframe.h: Add a flag in AVIndexEntry to discard frame after decoding.

Signed-off-by: Sasi Inguva <isasi@google.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
7 years agoavutil/frame: Add a flag to discard frame after decode.
Sasi Inguva [Thu, 15 Sep 2016 20:36:14 +0000 (13:36 -0700)]
avutil/frame: Add a flag to discard frame after decode.

Signed-off-by: Sasi Inguva <isasi@google.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
7 years agoavcodec/rscc: add support for gray8 format
Paul B Mahol [Mon, 19 Sep 2016 16:30:31 +0000 (18:30 +0200)]
avcodec/rscc: add support for gray8 format

Signed-off-by: Paul B Mahol <onemda@gmail.com>
7 years agoMAINTAINERS: add myself for mlp/truehd
Jai Luthra [Sun, 18 Sep 2016 05:52:27 +0000 (11:22 +0530)]
MAINTAINERS: add myself for mlp/truehd

Signed-off-by: Jai Luthra <me@jailuthra.in>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
7 years agovf_colorspace: Interpret unspecified color range as limited range
Vittorio Giovara [Mon, 19 Sep 2016 12:26:39 +0000 (08:26 -0400)]
vf_colorspace: Interpret unspecified color range as limited range

This is the assumption that is made in pixel format conversion do
throughout the code (in particular swscale), and BT-specifications
mandate.

Add a warning to inform the user that an automatic selection is being
made.

Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
7 years agoavcodec/dnxhddata: add support for cid 1244
Paul B Mahol [Mon, 19 Sep 2016 00:21:10 +0000 (02:21 +0200)]
avcodec/dnxhddata: add support for cid 1244

Signed-off-by: Paul B Mahol <onemda@gmail.com>
7 years agoavcodec/sheervideo: print internal format in debug log
Paul B Mahol [Sun, 18 Sep 2016 16:21:29 +0000 (18:21 +0200)]
avcodec/sheervideo: print internal format in debug log

Signed-off-by: Paul B Mahol <onemda@gmail.com>
7 years agoavcodec/sheervideo: fix Y prediction in decode_ybr(i) for older formats
Paul B Mahol [Sun, 18 Sep 2016 16:19:15 +0000 (18:19 +0200)]
avcodec/sheervideo: fix Y prediction in decode_ybr(i) for older formats

Signed-off-by: Paul B Mahol <onemda@gmail.com>
7 years agoavcodec/dvdsubdec: ignore h <= 1 case, to properly decode subtitle
Paul B Mahol [Sat, 17 Sep 2016 21:18:27 +0000 (23:18 +0200)]
avcodec/dvdsubdec: ignore h <= 1 case, to properly decode subtitle

Fixes #5825. If h == 1, second decode_rle() fails.

Regression since: 3f0a3e9e127d067c5cf65640a44765c1ddd01622.

Signed-off-by: Paul B Mahol <onemda@gmail.com>
7 years agoAdd CONTRIBUTING.md
Josh de Kock [Sat, 17 Sep 2016 23:41:46 +0000 (00:41 +0100)]
Add CONTRIBUTING.md

TimothyGu (https://github.com/FFmpeg/FFmpeg/pull/153#issuecomment-143274708)
suggested doing this a while ago, but it was never done. Adding as pull
requests seem to be still coming through.

Signed-off-by: Josh de Kock <josh@itanimul.li>
7 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>
7 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>
7 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>
7 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>
7 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>
7 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>
7 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>
7 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>
7 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>
7 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>
7 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>
7 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>
7 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

7 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.

7 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>
7 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>
7 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>
7 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>
7 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>
7 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>
7 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>
7 years agolavc: add hevc mediacodec decoder
Matthieu Bouron [Mon, 5 Sep 2016 15:08:41 +0000 (17:08 +0200)]
lavc: add hevc mediacodec decoder

7 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>
7 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>
7 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>
7 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.

7 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>
7 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>
7 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>
7 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>
7 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>
7 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.

7 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>
7 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>
7 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>
7 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>
7 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

7 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