]> git.sesse.net Git - ffmpeg/log
ffmpeg
5 years 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.

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

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

5 years 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)

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

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

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

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

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

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

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

5 years 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>
5 years 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>
5 years 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 years 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 years 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 years 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 years 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 years 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 years 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 years 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 years 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 years 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 years 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 years 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 years 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 years 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 years agoavformat/gif: extend description
Paul B Mahol [Wed, 12 Dec 2018 16:16:30 +0000 (17:16 +0100)]
avformat/gif: extend description

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

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

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

5 years 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));

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

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

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

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

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

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

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

5 years 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);
             ^~~~~~~~~~~~~~~~~~~~

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

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

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

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

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

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

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

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

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

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

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

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

5 years 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>
5 years agoavformat/mxfdec: fix indentation
Paul B Mahol [Sun, 9 Dec 2018 19:10:33 +0000 (20:10 +0100)]
avformat/mxfdec: fix indentation

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

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

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

5 years 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>
5 years 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>
5 years agodoc/codecs: Do not mention a removed flags.
Carl Eugen Hoyos [Sat, 8 Dec 2018 10:29:19 +0000 (11:29 +0100)]
doc/codecs: Do not mention a removed flags.

5 years agodoc/faq: Fix flags for possible video quality improvements.
Carl Eugen Hoyos [Sat, 8 Dec 2018 10:28:01 +0000 (11:28 +0100)]
doc/faq: Fix flags for possible video quality improvements.

Reported-by: Ulf Zibis
5 years agodoc: vapoursynth
Gyan Doshi [Sat, 8 Dec 2018 10:03:57 +0000 (15:33 +0530)]
doc: vapoursynth

Add entry in external library list and demuxers.

5 years agoFix bug in mpegts muxer which affects KLV async stream generation.
Artyom Lebedev [Fri, 7 Dec 2018 09:48:28 +0000 (11:48 +0200)]
Fix bug in mpegts muxer which affects KLV async stream generation.

Fixes ticket #7597.

Signed-off-by: Peter Ross <pross@xvid.org>
5 years agoavformat/mxfdec: set codec_tag for prores codec
Paul B Mahol [Wed, 5 Dec 2018 17:49:41 +0000 (18:49 +0100)]
avformat/mxfdec: set codec_tag for prores codec

5 years agoavcodec/proresdec2: add new line at end of debug message
Paul B Mahol [Fri, 7 Dec 2018 19:05:37 +0000 (20:05 +0100)]
avcodec/proresdec2: add new line at end of debug message

5 years agoavcodec/dpx: fix spotted code style issues
Paul B Mahol [Thu, 6 Dec 2018 19:33:09 +0000 (20:33 +0100)]
avcodec/dpx: fix spotted code style issues

5 years agoavcodec/dpx: add support for special encoding
Paul B Mahol [Thu, 6 Dec 2018 19:31:51 +0000 (20:31 +0100)]
avcodec/dpx: add support for special encoding

5 years agoavcodec/dpx: improve decoding of 10 bit gray images
Paul B Mahol [Thu, 6 Dec 2018 19:28:22 +0000 (20:28 +0100)]
avcodec/dpx: improve decoding of 10 bit gray images

5 years agoavcodec/dpx: add support for another gray10 variant
Paul B Mahol [Thu, 6 Dec 2018 19:25:33 +0000 (20:25 +0100)]
avcodec/dpx: add support for another gray10 variant

5 years agoavcodec/dpx: parse input device name
Paul B Mahol [Thu, 6 Dec 2018 19:23:37 +0000 (20:23 +0100)]
avcodec/dpx: parse input device name

5 years agoavcodec/dpx: parse image creator
Paul B Mahol [Thu, 6 Dec 2018 19:19:48 +0000 (20:19 +0100)]
avcodec/dpx: parse image creator

5 years agoavcodec/dpx: check version of format header too
Paul B Mahol [Wed, 5 Dec 2018 13:25:17 +0000 (14:25 +0100)]
avcodec/dpx: check version of format header too

5 years agodoc/general: rearrange libraries in alphabetical order
Gyan Doshi [Fri, 7 Dec 2018 12:26:00 +0000 (17:56 +0530)]
doc/general: rearrange libraries in alphabetical order

5 years agolavc/qsvenc: add an option to set h264 pps for every frame
Zhong Li [Thu, 25 Oct 2018 11:14:16 +0000 (19:14 +0800)]
lavc/qsvenc: add an option to set h264 pps for every frame

RepeatPPS is enabled by default in mfx. It is not necessary mostly and
wasting encoding bits.
Add an option to control it and disable it by default.

Reviewed-by: Mark Thompson <sw@jkqxz.net>
Signed-off-by: Zhong Li <zhong.li@intel.com>
5 years agolavc/qsvenc: dump log for frame rate
Zhong Li [Mon, 5 Nov 2018 08:02:57 +0000 (16:02 +0800)]
lavc/qsvenc: dump log for frame rate

Signed-off-by: Zhong Li <zhong.li@intel.com>
5 years agolavc/qsvenc: make hevc alignment same as h264 for 1.19+ version
Zhong Li [Thu, 25 Oct 2018 10:44:37 +0000 (18:44 +0800)]
lavc/qsvenc: make hevc alignment same as h264 for 1.19+ version

It is to clean up to the code and To-Do list.

Signed-off-by: Zhong Li <zhong.li@intel.com>
5 years agolavc/qsvenc: remove redundant code
Zhong Li [Thu, 25 Oct 2018 10:23:00 +0000 (18:23 +0800)]
lavc/qsvenc: remove redundant code

Signed-off-by: Zhong Li <zhong.li@intel.com>