ffmpeg.git
61 min agolavu/internal: Replace an empty loop with "do {}". master
Carl Eugen Hoyos [Mon, 17 Dec 2018 19:33:24 +0000 (20:33 +0100)]
lavu/internal: Replace an empty loop with "do {}".

Silences a clang warning when not compiling for x86:
libswscale/utils.c:345:13: warning: while loop has empty body

Suggested-by: Nicolas George
6 hours agoavcodec/mjpegdec: Fix indention of ljpeg_decode_yuv_scan()
Michael Niedermayer [Tue, 18 Dec 2018 13:27:48 +0000 (14:27 +0100)]
avcodec/mjpegdec: Fix indention of ljpeg_decode_yuv_scan()

Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
6 hours agoavcodec/mjpegdec: verify SOF len field validity
Michael Niedermayer [Tue, 18 Dec 2018 13:25:53 +0000 (14:25 +0100)]
avcodec/mjpegdec: verify SOF len field validity

Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
6 hours agodoc/encoders: Fix colums typo
Michael Niedermayer [Tue, 18 Dec 2018 13:20:38 +0000 (14:20 +0100)]
doc/encoders: Fix colums typo

Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
20 hours agoffmpeg: improve the intra stream discontinuity message
Jan Ekström [Tue, 9 Oct 2018 22:50:08 +0000 (01:50 +0300)]
ffmpeg: improve the intra stream discontinuity message

Now it actually tells which stream from which input and of
which type had an absolute DTS discontinuity larger than
dts_delta_threshold.

21 hours agoavformat/vorbiscomment: add support for writing chapters
Paul B Mahol [Sun, 16 Dec 2018 20:50:08 +0000 (21:50 +0100)]
avformat/vorbiscomment: add support for writing chapters

Fixes #7532.

21 hours agoavcodec/g723_1dec: improve stereo support
Paul B Mahol [Tue, 18 Dec 2018 17:57:18 +0000 (18:57 +0100)]
avcodec/g723_1dec: improve stereo support

21 hours agoavcodec/g723_1dec: reindent after last commit
Paul B Mahol [Sat, 15 Dec 2018 12:22:52 +0000 (13:22 +0100)]
avcodec/g723_1dec: reindent after last commit

21 hours agoavcodec/g723_1: add support for stereo files
Paul B Mahol [Sat, 15 Dec 2018 12:20:43 +0000 (13:20 +0100)]
avcodec/g723_1: add support for stereo files

22 hours agolavc/mjpegdec: Interpret three-component Adobe transform 0 also as RGB.
Carl Eugen Hoyos [Tue, 18 Dec 2018 17:00:31 +0000 (18:00 +0100)]
lavc/mjpegdec: Interpret three-component Adobe transform 0 also as RGB.

While there, make a comparison with "RGB" more readable.

Fixes ticket #7625.

26 hours agoavfilter/scene_sad: Fix funtions typos
Michael Niedermayer [Tue, 18 Dec 2018 13:13:56 +0000 (14:13 +0100)]
avfilter/scene_sad: Fix funtions typos

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
28 hours agoavcodec/mips: [loongson] enable MSA optimization for loongson platform.
Shiyou Yin [Mon, 17 Dec 2018 10:03:30 +0000 (18:03 +0800)]
avcodec/mips: [loongson] enable MSA optimization for loongson platform.

Set initialization order of MSA after MMI to make it work on loongson platform(msa is supported by loongson2k、3a4000 etc.).

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
32 hours agolavc/qsv_hevc: correct QSV HEVC default plugin on Windows
Zhong Li [Wed, 12 Dec 2018 07:03:21 +0000 (15:03 +0800)]
lavc/qsv_hevc: correct QSV HEVC default plugin on Windows

1. Old logic meaned: everywhere, except Windows, ffmpeg has to use HW
acceleration, but on Windows ffmpeg has to use (unavailable) software
HEVC by default
2. Software HEVC is available only if you provide corresponding
software MediaSDK library, which isn't provided with ffmpeg. More
information could be found in
https://github.com/Intel-Media-SDK/MediaSDK/blob/master/doc/samples/readme-encode_linux.pdf
3. HW HEVC decoding/encoding are available on Windows in the driver by default

Note: Default case should be the most common case but this change still has potential risk
on windows if HW path is not supported(or doesn't work as expection).
(See the historical disscution: https://lists.libav.org/pipermail/libav-devel/2016-November/080419.html).
In such case, two options suggested:
1. Use the option "-load_plugin hevc_sw" to switch SW path manually.
2. Or report bug to Intel windows driver if your GPU can support HEVC HW codec.
  (HEVC decoding is supported since Braswell, and encoding supported since Skylake)

Patch started by Landgraph. Add similar change for hevc decoder and bump a new version.

Reviewed-by: Mark Thompson <sw@jkqxz.net>
Reviewed-by: Maxym Dmytrychenko <maxim.d33@gmail.com>
Signed-off-by: Landgraph <me@landgraph.ru>
Signed-off-by: Zhong Li <zhong.li@intel.com>
42 hours agolavf/mov: document the dvh1 codec switch based on hvcC availability
Jan Ekström [Mon, 3 Dec 2018 01:15:29 +0000 (03:15 +0200)]
lavf/mov: document the dvh1 codec switch based on hvcC availability

42 hours agolavf/isom: add Dolby Vision sample entry codes for HEVC and H.264
Rodger Combs [Mon, 5 Nov 2018 16:26:24 +0000 (10:26 -0600)]
lavf/isom: add Dolby Vision sample entry codes for HEVC and H.264

These are registered identifiers at the MPEG-4 RA, which are
defined as to be utilized for Dolby Vision AVC/HEVC streams that
are not correctly presentable by standards-compliant AVC/HEVC players.

According to the Dolby Vision specification for ISOBMFF, these sample
entry codes are specified to have the standard AVC or HEVC decoder
configuration box in addition to the Dolby custom DOVIConfigurationBox.
This is what enables us to decode the streams without custom parsing.

For correct presentation information from the DOVIConfigurationBox
is required (YCbCr or modified ICtCP, SDR or HDR, base or enhancement
layer).

43 hours agoavformat/mxfenc: fix typo
Paul B Mahol [Mon, 17 Dec 2018 20:06:36 +0000 (21:06 +0100)]
avformat/mxfenc: fix typo

45 hours agoavfilter/af_apad: add pad_dur and whole_dur options
Paul B Mahol [Sun, 16 Dec 2018 16:00:56 +0000 (17:00 +0100)]
avfilter/af_apad: add pad_dur and whole_dur options

46 hours agolavf/id3v2: fail read_apic on EOF reading mimetype
chcunningham [Fri, 14 Dec 2018 21:44:07 +0000 (13:44 -0800)]
lavf/id3v2: fail read_apic on EOF reading mimetype

avio_read may return EOF, leaving the mimetype array unitialized. fail
early when this occurs to avoid using the array in an unitialized state.

Reviewed-by: Tomas Härdin <tjoppen@acc.umu.se>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2 days agolavfi/program_opencl: Do not use format specifier "z" on Windows.
Carl Eugen Hoyos [Mon, 17 Dec 2018 13:44:10 +0000 (14:44 +0100)]
lavfi/program_opencl: Do not use format specifier "z" on Windows.

2 days agolavc/cbs: Do not use format specifier "z" on Windows.
Carl Eugen Hoyos [Mon, 17 Dec 2018 13:39:41 +0000 (14:39 +0100)]
lavc/cbs: Do not use format specifier "z" on Windows.

2 days agoavformat/dashenc: Added support for Low-latency HLS(Experimental)
kjeyapal@akamai.com [Wed, 12 Dec 2018 16:20:19 +0000 (21:50 +0530)]
avformat/dashenc: Added support for Low-latency HLS(Experimental)

Apple doesn't have an official spec for LHLS. Meanwhile hls.js player folks are
trying to standardize a open LHLS spec. The draft spec is available in https://github.com/video-dev/hlsjs-rfcs/blob/lhls-spec/proposals/0001-lhls.md
This option will also try to comply with the above open spec, till Apple's spec officially supports it.
Applicable only when @var{streaming} and @var{hls_playlist} options are enabled.

2 days agoavformat/dashenc : Refactored HLS media playlist related code
kjeyapal@akamai.com [Wed, 12 Dec 2018 16:20:18 +0000 (21:50 +0530)]
avformat/dashenc : Refactored HLS media playlist related code

Made it as a separate function, so that it could be reused (in future)

2 days agoconfigure: Use "clang" as cc_default for Android.
Carl Eugen Hoyos [Thu, 6 Dec 2018 23:11:17 +0000 (00:11 +0100)]
configure: Use "clang" as cc_default for Android.

2 days agoavcodec/tiff: add support for 12bit grayscale images
Paul B Mahol [Fri, 14 Dec 2018 16:32:25 +0000 (17:32 +0100)]
avcodec/tiff: add support for 12bit grayscale images

Fixes #4688.

3 days agoavcodec/rasc: Check that the number of moves is less than or equal the number of...
Michael Niedermayer [Fri, 14 Dec 2018 23:10:17 +0000 (00:10 +0100)]
avcodec/rasc: Check that the number of moves is less than or equal the number of pixels

Fixes: OOM
Fixes: 10307/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_RASC_fuzzer-5393974559244288

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 days agoavcodec/vp7: Check for end of input in vp78_decode_mv_mb_modes()
Michael Niedermayer [Sat, 15 Dec 2018 00:53:16 +0000 (01:53 +0100)]
avcodec/vp7: Check for end of input in vp78_decode_mv_mb_modes()

Fixes: Timeout
Fixes: 10313/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_VP7_fuzzer-5637719389110272

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Reviewed-by: Peter Ross <pross@xvid.org>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 days agoavformat/nutenc: Document trailer index assert better
Michael Niedermayer [Fri, 14 Dec 2018 20:52:09 +0000 (21:52 +0100)]
avformat/nutenc: Document trailer index assert better

Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 days agolavf/mov: ensure only one tkhd per trak
chcunningham [Thu, 13 Dec 2018 21:58:40 +0000 (13:58 -0800)]
lavf/mov: ensure only one tkhd per trak

Chromium fuzzing produced a whacky file with extra tkhds. This caused
an AVStream that was already in use to be corrupted by assigning it a
new id, which blows up later in mov_read_trun because the
MOVFragmentStreamInfo.index_entry now points OOB.

Reviewed-by: Baptiste Coudurier <baptiste.coudurier@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 days agoavutil/tests/random_seed: seeds[] is uint32_t, therefore use PRIX32 macro
Peter Ross [Sat, 15 Dec 2018 01:54:43 +0000 (12:54 +1100)]
avutil/tests/random_seed: seeds[] is uint32_t, therefore use PRIX32 macro

squelch format type warning

4 days agoavutil/avsscanf: do not use long double functions
Paul B Mahol [Sat, 15 Dec 2018 08:58:28 +0000 (09:58 +0100)]
avutil/avsscanf: do not use long double functions

Not needed when only double is used.

4 days agolavc/g729dec: Cosmetics, fix indentation after last commit.
Carl Eugen Hoyos [Fri, 14 Dec 2018 23:55:18 +0000 (00:55 +0100)]
lavc/g729dec: Cosmetics, fix indentation after last commit.

4 days agolavc/g729dec: Support stereo streams.
Carl Eugen Hoyos [Fri, 14 Dec 2018 14:16:56 +0000 (15:16 +0100)]
lavc/g729dec: Support stereo streams.

Fixes ticket #4553.

4 days agoavcodec/clearvideo: Check remaining input bits in P macro block loop
Michael Niedermayer [Thu, 6 Dec 2018 00:19:37 +0000 (01:19 +0100)]
avcodec/clearvideo: Check remaining input bits in P macro block loop

Fixes: Timeout
Fixes: 11083/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_CLEARVIDEO_fuzzer-5657180351496192

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 days agoavcodec/dvdsubdec: discard accumulated buffer on error
Michael Niedermayer [Wed, 5 Dec 2018 23:09:37 +0000 (00:09 +0100)]
avcodec/dvdsubdec: discard accumulated buffer on error

Fixes: Timeout
Fixes: 10992/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_DVDSUB_fuzzer-5657495410835456

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 days agoavcodec/rasc: Check input space before reading chunk
Michael Niedermayer [Wed, 5 Dec 2018 01:18:51 +0000 (02:18 +0100)]
avcodec/rasc: Check input space before reading chunk

Fixes: Timeout
Fixes: 11118/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_RASC_fuzzer-5652564066959360

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 days agoavformat/nutdec: fix pts overflow
Paul B Mahol [Fri, 14 Dec 2018 20:48:17 +0000 (21:48 +0100)]
avformat/nutdec: fix pts overflow

Probably fixes #6913.

4 days agoswscale/output: VSX-optimize 16-bit yuv2plane1
Lauri Kasanen [Thu, 13 Dec 2018 12:07:58 +0000 (14:07 +0200)]
swscale/output: VSX-optimize 16-bit yuv2plane1

./ffmpeg_g -f rawvideo -pix_fmt rgb24 -s hd1080 -i /dev/zero -pix_fmt yuv420p16le \
-f null -vframes 100 -v error -nostats -

2120 UNITS in planar1,   65393 runs,    143 skips

-cpuflags 0

19157 UNITS in planar1,   65512 runs,     24 skips

9.03632 speedup, 16be similarly.

Fate passes, each format tested with an image to video conversion.

Signed-off-by: Lauri Kasanen <cand@gmx.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 days agoavcodec/mpeg: Initialize quarter_sample parameter from previous thread.
Andriy Gelman [Thu, 13 Dec 2018 04:57:35 +0000 (23:57 -0500)]
avcodec/mpeg: Initialize quarter_sample parameter from previous thread.

Fixes #7410.
The value of sub-pixel precision for me/mc can change during an Intra frame. In multi-threaded decoding this change is not propagated to other frame threads causing decoding artifacts. This patch initializes the sub-pixel precision parameter from previous thread, which fixes the issue.

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 days agoavformat/ffmetadec: do no limit size of tags to 1024
Paul B Mahol [Thu, 13 Dec 2018 12:06:30 +0000 (13:06 +0100)]
avformat/ffmetadec: do no limit size of tags to 1024

Use bprint API instead.

Fixes #4833.

5 days agoavcodec/ass_split: fix a memory leak defect when realloc fails
Fan Gang [Tue, 13 Feb 2018 07:38:59 +0000 (15:38 +0800)]
avcodec/ass_split: fix a memory leak defect when realloc fails

Fixes #7019.

5 days agodoc/metadata: fix error in timebase description
Paul B Mahol [Fri, 14 Dec 2018 11:56:13 +0000 (12:56 +0100)]
doc/metadata: fix error in timebase description

Fixes #7184.

5 days agoavformat/movenc: treat ALAC same as FLAC and write correct info
Paul B Mahol [Fri, 14 Dec 2018 11:10:25 +0000 (12:10 +0100)]
avformat/movenc: treat ALAC same as FLAC and write correct info

Fixes #7291.

5 days agoavformat/id3v2: use png header to get PNG signature
Paul B Mahol [Fri, 14 Dec 2018 10:34:46 +0000 (11:34 +0100)]
avformat/id3v2: use png header to get PNG signature

5 days agoavformat/flac_picture: try to guess PNG by actual picture data
Paul B Mahol [Thu, 13 Dec 2018 19:12:52 +0000 (20:12 +0100)]
avformat/flac_picture: try to guess PNG by actual picture data

Fixes #5028.

5 days agoavformat/nut: add support for yuva444/422p12 pixel format
Paul B Mahol [Fri, 14 Dec 2018 10:26:30 +0000 (11:26 +0100)]
avformat/nut: add support for yuva444/422p12 pixel format

5 days agoavformat/nutdec: fix obvious typo
Paul B Mahol [Thu, 13 Dec 2018 22:17:00 +0000 (23:17 +0100)]
avformat/nutdec: fix obvious typo

Fixes #6742.

5 days agoavformat/mxfdec: fix error check in macro
Paul B Mahol [Thu, 13 Dec 2018 22:51:02 +0000 (23:51 +0100)]
avformat/mxfdec: fix error check in macro

Fixes #6750.

5 days agoavcodec/xfacedec: fix order of operations
Paul B Mahol [Thu, 13 Dec 2018 22:44:39 +0000 (23:44 +0100)]
avcodec/xfacedec: fix order of operations

Fixes #6745.

5 days agobump micro after recent gif changes
Paul B Mahol [Thu, 13 Dec 2018 18:16:58 +0000 (19:16 +0100)]
bump micro after recent gif changes

5 days agoavcodec/gif: use avctx->frame_number
Paul B Mahol [Thu, 13 Dec 2018 18:15:45 +0000 (19:15 +0100)]
avcodec/gif: use avctx->frame_number

5 days agoavformat/gifdec: export duration, nb_frames and comment
Paul B Mahol [Thu, 13 Dec 2018 17:37:27 +0000 (18:37 +0100)]
avformat/gifdec: export duration, nb_frames and comment

5 days agoavcodec/codec_desc: extend gif description
Paul B Mahol [Wed, 12 Dec 2018 16:16:52 +0000 (17:16 +0100)]
avcodec/codec_desc: extend gif description

5 days agoavformat/gif: extend description
Paul B Mahol [Wed, 12 Dec 2018 16:16:30 +0000 (17:16 +0100)]
avformat/gif: extend description

5 days agoavcodec/gif: enable encoding single gif image per frame
Paul B Mahol [Wed, 12 Dec 2018 12:19:33 +0000 (13:19 +0100)]
avcodec/gif: enable encoding single gif image per frame

Unbreaks gif image2 muxer.

5 days agoavformat/gifdec: export sample aspect ratio
Paul B Mahol [Wed, 12 Dec 2018 10:12:32 +0000 (11:12 +0100)]
avformat/gifdec: export sample aspect ratio

5 days agoavcodec/gif: add support for alpha
Paul B Mahol [Tue, 11 Dec 2018 18:40:17 +0000 (19:40 +0100)]
avcodec/gif: add support for alpha

Based on patch by Bjorn Roche.

Fixes #6813.

5 days agoavcodec: rewrite gif muxing and encoding
Paul B Mahol [Tue, 11 Dec 2018 10:52:17 +0000 (11:52 +0100)]
avcodec: rewrite gif muxing and encoding

Now "-c copy" works.
Update FATE files.

Demuxer only split file into packets, no data is trimmed.
Encoder & muxer currently expect completely another format
where muxer writes stuff like disposal method which should
be really encoder job.
With this patch muxer only modifies delay between two packets.
Codec copy need to have same behavior between demuxer and
muxer to work correctly.

Fixes #6640.

6 days agoavformat/utils: add support for reading ID3 tags at start of wav
Paul B Mahol [Wed, 12 Dec 2018 18:24:21 +0000 (19:24 +0100)]
avformat/utils: add support for reading ID3 tags at start of wav

Fixes #4140.

6 days agoavformat/wavdec: add support for 'id3 ' chunk
Paul B Mahol [Wed, 12 Dec 2018 18:02:30 +0000 (19:02 +0100)]
avformat/wavdec: add support for 'id3 ' chunk

Fixes #5700.

6 days agolavfi/signalstats: Cast the return value of AV_RN16() to int.
Carl Eugen Hoyos [Tue, 11 Dec 2018 02:12:49 +0000 (03:12 +0100)]
lavfi/signalstats: Cast the return value of AV_RN16() to int.

It is unsigned at least on arm, fixes the following warnings:
libavfilter/vf_signalstats.c:833:21: warning: taking the absolute value of unsigned type 'unsigned int' has no effect
            dify += abs(yuv - AV_RN16(prev->data[0] + pw + i * 2));

6 days agoopusenc: fix infinite loop if flushing encoder upon init
Rostislav Pehlivanov [Wed, 12 Dec 2018 20:05:33 +0000 (20:05 +0000)]
opusenc: fix infinite loop if flushing encoder upon init

The issue is that the afq still has samples as on init it counts
the overlap used as a delay to adjust the PTS it generates, hence
we can't rely on it right after init.
So just check to see if any frames have been encoded. frame_number
can't be anything but 0 right after init and can only be set by lavc.

Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com>
7 days agoavcodec/libdav1d: add support for 12bit streams
James Almer [Wed, 12 Dec 2018 03:06:05 +0000 (00:06 -0300)]
avcodec/libdav1d: add support for 12bit streams

Signed-off-by: James Almer <jamrial@gmail.com>
7 days agoswscale/output: VSX-optimize nbps yuv2plane1
Lauri Kasanen [Tue, 27 Nov 2018 13:26:00 +0000 (15:26 +0200)]
swscale/output: VSX-optimize nbps yuv2plane1

./ffmpeg_g -f rawvideo -pix_fmt rgb24 -s hd1080 -i /dev/zero -pix_fmt yuv420p9le \
-f null -vframes 100 -v error -nostats -

Speedups:
yuv2plane1_9BE_vsx 11.2042
yuv2plane1_9LE_vsx 11.156
yuv2plane1_10BE_vsx 9.89428
yuv2plane1_10LE_vsx 10.3637
yuv2plane1_12BE_vsx 9.71923
yuv2plane1_12LE_vsx 11.0404
yuv2plane1_14BE_vsx 10.1763
yuv2plane1_14LE_vsx 11.2728

Fate passes, each format tested with an image to video conversion.

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
7 days agodoc/indevs: document libdc1394 options
Lou Logan [Wed, 12 Dec 2018 00:24:30 +0000 (15:24 -0900)]
doc/indevs: document libdc1394 options

Signed-off-by: Lou Logan <lou@lrcd.com>
7 days agotests/api-flac-test: Rename NUMBER_OF_FRAMES as NUMBER_OF_AUDIO_FRAMES.
Carl Eugen Hoyos [Mon, 3 Dec 2018 00:14:24 +0000 (01:14 +0100)]
tests/api-flac-test: Rename NUMBER_OF_FRAMES as NUMBER_OF_AUDIO_FRAMES.

In system header /usr/include/sys/mstsave.h, aix defines NUMBER_OF_FRAMES,
causing redefinition warnings.

7 days agoavfilter/vf_paletteuse: fix flags for alpha_threshold option
Paul B Mahol [Tue, 11 Dec 2018 16:55:05 +0000 (17:55 +0100)]
avfilter/vf_paletteuse: fix flags for alpha_threshold option

8 days agoconfigure: require the first stable version of libdav1d
James Almer [Tue, 11 Dec 2018 15:42:22 +0000 (12:42 -0300)]
configure: require the first stable version of libdav1d

Signed-off-by: James Almer <jamrial@gmail.com>
8 days agofate: add prog suffix in fate-mov-mp4-with-mov-in24-ver
Gyan Doshi [Mon, 10 Dec 2018 15:14:33 +0000 (20:44 +0530)]
fate: add prog suffix in fate-mov-mp4-with-mov-in24-ver

Prevent test failure with builds that set a suffix and/or
extension for the ffprobe binary

8 days agoos_support: define socket shutdown SHUT_xxx macros if they are not defined
Peter Ross [Sat, 24 Nov 2018 12:26:13 +0000 (23:26 +1100)]
os_support: define socket shutdown SHUT_xxx macros if they are not defined

this section has been moved into the CONFIG_NETWORK block, since it only
affects network enabled builds.

sys/socket.h (with WIN32 guard) is needed to check if the SHUT_xxx macro exists.

8 days agoavformat/dashenc: Used the movenc option skip_sidx instead of global_sidx
kjeyapal@akamai.com [Wed, 5 Dec 2018 06:18:40 +0000 (11:48 +0530)]
avformat/dashenc: Used the movenc option skip_sidx instead of global_sidx

Anyways the intended behaviour was to disable SIDX atom.

8 days agoavformat/movenc: Added an option to disable SIDX atom
kjeyapal@akamai.com [Thu, 6 Dec 2018 07:28:01 +0000 (12:58 +0530)]
avformat/movenc: Added an option to disable SIDX atom

8 days agodoc/indevs: fix hdvbuffer typo in iec61883 example
Lou Logan [Tue, 11 Dec 2018 00:17:57 +0000 (15:17 -0900)]
doc/indevs: fix hdvbuffer typo in iec61883 example

Option name is dvbuffer.

Signed-off-by: Lou Logan <lou@lrcd.com>
8 days agolavc/tiff: Fix leak of yuv_line in TiffContext.
Carl Hetherington [Mon, 10 Dec 2018 23:52:16 +0000 (23:52 +0000)]
lavc/tiff: Fix leak of yuv_line in TiffContext.

Signed-off-by: Carl Hetherington <cth@carlh.net>
8 days agolavd/v4l2: Use "int request" as second parameter for ioctl() on Android.
Carl Eugen Hoyos [Thu, 6 Dec 2018 22:34:54 +0000 (23:34 +0100)]
lavd/v4l2: Use "int request" as second parameter for ioctl() on Android.

Fixes build with new Android toolchain.

8 days agolavf/matroskadec: Do not use strncat() to limit copying a one-char constant.
Carl Eugen Hoyos [Mon, 10 Dec 2018 00:55:15 +0000 (01:55 +0100)]
lavf/matroskadec: Do not use strncat() to limit copying a one-char constant.

Instead add the character to the snprintf above as suggested by Mark.

Silences a warning:
libavformat/matroskadec.c: In function 'webm_dash_manifest_cues':
libavformat/matroskadec.c:3947:13: warning: 'strncat' specified bound 1 equals source length [-Wstringop-overflow=]
             strncat(buf, ",", 1);
             ^~~~~~~~~~~~~~~~~~~~

8 days agoavcodec/xpmdec: define constants
Paul B Mahol [Mon, 10 Dec 2018 20:38:08 +0000 (21:38 +0100)]
avcodec/xpmdec: define constants

8 days agoavcodec/xpmdec: fix small artifacts
Paul B Mahol [Mon, 10 Dec 2018 20:31:18 +0000 (21:31 +0100)]
avcodec/xpmdec: fix small artifacts

The max size of uint8_t subset is 223 not 220.

8 days agoavformat/gif: simplify signature writing
Paul B Mahol [Mon, 10 Dec 2018 17:36:11 +0000 (18:36 +0100)]
avformat/gif: simplify signature writing

8 days agolavc/xpmdec: Allow more colours per character.
Carl Eugen Hoyos [Thu, 6 Dec 2018 18:09:56 +0000 (19:09 +0100)]
lavc/xpmdec: Allow more colours per character.

Fixes ticket #6234.

8 days agoavcodec/gifdec: truncate too big width/height for invalid gif files
Paul B Mahol [Mon, 10 Dec 2018 12:32:10 +0000 (13:32 +0100)]
avcodec/gifdec: truncate too big width/height for invalid gif files

Fixes #6874.

8 days agoavformat/mxfenc: calculate and store DAR from user SAR
Paul B Mahol [Mon, 10 Dec 2018 09:15:27 +0000 (10:15 +0100)]
avformat/mxfenc: calculate and store DAR from user SAR

8 days agoavformat/mxfenc: allow muxing prores
Paul B Mahol [Wed, 5 Dec 2018 17:10:37 +0000 (18:10 +0100)]
avformat/mxfenc: allow muxing prores

8 days agoavcodec/proresdec2: allow changing resolution
Paul B Mahol [Wed, 5 Dec 2018 17:50:33 +0000 (18:50 +0100)]
avcodec/proresdec2: allow changing resolution

9 days agoavformat: add gif pipe demuxer
Paul B Mahol [Sat, 8 Dec 2018 12:06:31 +0000 (13:06 +0100)]
avformat: add gif pipe demuxer

9 days agoavcodec: add gif parser
Paul B Mahol [Sat, 8 Dec 2018 11:31:19 +0000 (12:31 +0100)]
avcodec: add gif parser

9 days agolavfi/vf_scale_vaapi: add scaling mode setting support.
Jun Zhao [Wed, 12 Sep 2018 12:14:58 +0000 (20:14 +0800)]
lavfi/vf_scale_vaapi: add scaling mode setting support.

before this change, scale_vaapi hard coding the scaling mode, add a
new option "mode" to setting the scaling mode, it can be use to change
scaling algorithm for performance/quality trade off.

Note: VA_FILTER_SCALING_NL_ANAMORPHIC(nolinear ananorphic scaling
algorithm) doesn't support by i965/iHD driver now, add this just for
completeness.

Reviewed-by: Mark Thompson <sw@jkqxz.net>
Signed-off-by: Jun Zhao <mypopydev@gmail.com>
9 days agoavformat/hlsenc : Added an option to ignore IO errors
Karthick J [Mon, 10 Dec 2018 06:19:23 +0000 (14:19 +0800)]
avformat/hlsenc : Added an option to ignore IO errors

Useful for long duration runs with network output

Reviewed-by: Steven Liu <lq@chinaffmpeg.org>
9 days agoavformat/hlsenc: Handled error from ff_http_do_new_request() function
Karthick J [Mon, 10 Dec 2018 06:17:55 +0000 (14:17 +0800)]
avformat/hlsenc: Handled error from ff_http_do_new_request() function

This patch fixes the segmentation fault issues due to
unhandled errors from ff_http_do_new_request function.

Reviewed-by: Steven Liu <lq@chinaffmpeg.org>
9 days agolavc/qsvenc: replace assert with error return
Linjie Fu [Sun, 9 Dec 2018 13:30:38 +0000 (21:30 +0800)]
lavc/qsvenc: replace assert with error return

Fix the (m)jpeg encoding regression issue as decription in tikect #7593,
due to bs->FrameType is not set in such case in
MSDK (https://github.com/Intel-Media-SDK/MediaSDK/issues/970).
(And assert on a value coming from an external library is not proper.)

Add default type check for bs->FrameType, and return invalid data error in function
ff_qsv_encode to avoid using uninitialized value.

Signed-off-by: Linjie Fu <linjie.fu@intel.com>
Signed-off-by: Zhong Li <zhong.li@intel.com>
9 days agolavc/cbs_vp9: Make variable prob unsigned.
Carl Eugen Hoyos [Mon, 10 Dec 2018 01:18:56 +0000 (02:18 +0100)]
lavc/cbs_vp9: Make variable prob unsigned.

Silences a warning with clang:
libavcodec/cbs_vp9_syntax_template.c:220:17: warning: implicit conversion from 'int' to 'int8_t' (aka 'signed char')
      changes value from 255 to -1

9 days agolavc/decode: Initialize return value for get_format() failure.
Carl Eugen Hoyos [Thu, 6 Dec 2018 22:17:13 +0000 (23:17 +0100)]
lavc/decode: Initialize return value for get_format() failure.

Silences a warning:
libavcodec/decode.c:1378:13: warning: variable 'ret' is used uninitialized whenever 'if' condition is true

9 days agoavcodec: bump micro version after d12d4d4515
James Almer [Sun, 9 Dec 2018 22:28:37 +0000 (19:28 -0300)]
avcodec: bump micro version after d12d4d4515

Signed-off-by: James Almer <jamrial@gmail.com>
9 days agoavformat/mxfdec: fix indentation
Paul B Mahol [Sun, 9 Dec 2018 19:10:33 +0000 (20:10 +0100)]
avformat/mxfdec: fix indentation

9 days agoqsvdec: Fix running with assert_level > 0
Mark Thompson [Sun, 11 Nov 2018 15:32:15 +0000 (15:32 +0000)]
qsvdec: Fix running with assert_level > 0

Assertion avctx->codec_id != AV_CODEC_ID_NONE failed at src/libavcodec/parser.c:128

The setting on the internal AVCodecContext used for parsing only is
otherwise irrelevant, so just set it to avoid the assert.

9 days agoavcodec/libaomenc: add row-mt option
James Almer [Sat, 8 Dec 2018 23:14:12 +0000 (20:14 -0300)]
avcodec/libaomenc: add row-mt option

Default to disable, same as aomenc.

Fixes ticket #7598

Signed-off-by: James Almer <jamrial@gmail.com>
9 days agoavfilter/vf_showinfo: allow checksums calculation to be disabled
Paul B Mahol [Tue, 4 Dec 2018 20:39:32 +0000 (21:39 +0100)]
avfilter/vf_showinfo: allow checksums calculation to be disabled

Fixes #6987.

10 days agolavfi/buffersink: fix abuffersink flag setting issue
Jun Zhao [Sun, 9 Dec 2018 14:30:41 +0000 (22:30 +0800)]
lavfi/buffersink: fix abuffersink flag setting issue

abuffersink need to setting AV_OPT_FLAG_AUDIO_PARAM flag.

Reviewed-by: Nicolas George <george@nsup.org>
Signed-off-by: Jun Zhao <mypopydev@gmail.com>
10 days agoavformat/dhav: export average frame rate too
Paul B Mahol [Sun, 9 Dec 2018 09:49:00 +0000 (10:49 +0100)]
avformat/dhav: export average frame rate too

10 days agoavcodec/jpeg2000dec: Skip DWT if nothing is coded
Michael Niedermayer [Sat, 1 Dec 2018 23:35:49 +0000 (00:35 +0100)]
avcodec/jpeg2000dec: Skip DWT if nothing is coded

Improves speed in uncommon case

Fixes: Timeout
Fixes: 10964/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_JPEG2000_fuzzer-5132066034286592

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
10 days agoavcodec/dxv: Check that there is enough data to decompress
Michael Niedermayer [Sat, 1 Dec 2018 20:41:01 +0000 (21:41 +0100)]
avcodec/dxv: Check that there is enough data to decompress

Fixes: Timeout
Fixes: 10979/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_DXV_fuzzer-6178582203203584

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>