Michael Niedermayer
35a603050d
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>
2018-12-14 23:24:20 +01:00
Michael Niedermayer
52ba824c65
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>
2018-12-14 23:24:20 +01:00
Paul B Mahol
6bfc935232
avformat/nutdec: fix pts overflow
...
Probably fixes #6913 .
2018-12-14 21:53:41 +01:00
Lauri Kasanen
b4c8c03b00
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>
2018-12-14 19:09:11 +01:00
Andriy Gelman
5282db5929
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>
2018-12-14 19:09:11 +01:00
Paul B Mahol
78e7b70395
avformat/ffmetadec: do no limit size of tags to 1024
...
Use bprint API instead.
Fixes #4833 .
2018-12-14 17:33:52 +01:00
Fan Gang
c6e1966c1a
avcodec/ass_split: fix a memory leak defect when realloc fails
...
Fixes #7019 .
2018-12-14 14:19:50 +01:00
Paul B Mahol
ddefd05507
doc/metadata: fix error in timebase description
...
Fixes #7184 .
2018-12-14 12:57:34 +01:00
Paul B Mahol
d9a91d58a1
avformat/movenc: treat ALAC same as FLAC and write correct info
...
Fixes #7291 .
2018-12-14 12:11:57 +01:00
Paul B Mahol
5e6b93bb4d
avformat/id3v2: use png header to get PNG signature
2018-12-14 11:34:46 +01:00
Paul B Mahol
e9817636a7
avformat/flac_picture: try to guess PNG by actual picture data
...
Fixes #5028 .
2018-12-14 11:32:27 +01:00
Paul B Mahol
6f058b5cef
avformat/nut: add support for yuva444/422p12 pixel format
2018-12-14 11:26:30 +01:00
Paul B Mahol
f2179afb01
avformat/nutdec: fix obvious typo
...
Fixes #6742 .
2018-12-14 10:45:32 +01:00
Paul B Mahol
e5a0013c4a
avformat/mxfdec: fix error check in macro
...
Fixes #6750 .
2018-12-13 23:51:53 +01:00
Paul B Mahol
8c9fff6183
avcodec/xfacedec: fix order of operations
...
Fixes #6745 .
2018-12-13 23:44:39 +01:00
Paul B Mahol
0ed678a97a
bump micro after recent gif changes
2018-12-13 19:30:39 +01:00
Paul B Mahol
ec8502f9cb
avcodec/gif: use avctx->frame_number
2018-12-13 19:30:39 +01:00
Paul B Mahol
0aa5a7b2e9
avformat/gifdec: export duration, nb_frames and comment
2018-12-13 18:58:48 +01:00
Paul B Mahol
f2664a306f
avcodec/codec_desc: extend gif description
2018-12-13 18:58:48 +01:00
Paul B Mahol
280b432464
avformat/gif: extend description
2018-12-13 18:58:48 +01:00
Paul B Mahol
bb0984cc29
avcodec/gif: enable encoding single gif image per frame
...
Unbreaks gif image2 muxer.
2018-12-13 18:58:48 +01:00
Paul B Mahol
80f0f8660c
avformat/gifdec: export sample aspect ratio
2018-12-13 18:58:48 +01:00
Paul B Mahol
3f8cdd4ee3
avcodec/gif: add support for alpha
...
Based on patch by Bjorn Roche.
Fixes #6813 .
2018-12-13 18:58:48 +01:00
Paul B Mahol
faca28c264
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 .
2018-12-13 18:58:48 +01:00
Paul B Mahol
102c11745e
avformat/utils: add support for reading ID3 tags at start of wav
...
Fixes #4140 .
2018-12-13 10:01:15 +01:00
Paul B Mahol
f5aad350d3
avformat/wavdec: add support for 'id3 ' chunk
...
Fixes #5700 .
2018-12-13 10:01:15 +01:00
Carl Eugen Hoyos
32601fb821
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));
2018-12-12 23:54:14 +01:00
Rostislav Pehlivanov
83db1efd42
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>
2018-12-12 20:05:33 +00:00
James Almer
0e833f615b
avcodec/libdav1d: add support for 12bit streams
...
Signed-off-by: James Almer <jamrial@gmail.com>
2018-12-12 00:07:13 -03:00
Lauri Kasanen
1046cba24b
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>
2018-12-12 01:56:57 +01:00
Lou Logan
11817c3316
doc/indevs: document libdc1394 options
...
Signed-off-by: Lou Logan <lou@lrcd.com>
2018-12-11 15:27:26 -09:00
Carl Eugen Hoyos
464aa60eb5
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.
2018-12-11 19:14:02 +01:00
Paul B Mahol
dd7d6034f1
avfilter/vf_paletteuse: fix flags for alpha_threshold option
2018-12-11 17:55:05 +01:00
James Almer
9c49933a3e
configure: require the first stable version of libdav1d
...
Signed-off-by: James Almer <jamrial@gmail.com>
2018-12-11 12:42:22 -03:00
Gyan Doshi
3b825b2f81
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
2018-12-11 20:51:17 +05:30
Peter Ross
b41f378fc4
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.
2018-12-11 22:08:18 +11:00
kjeyapal@akamai.com
876ed08b0d
avformat/dashenc: Used the movenc option skip_sidx instead of global_sidx
...
Anyways the intended behaviour was to disable SIDX atom.
2018-12-11 10:53:18 +05:30
kjeyapal@akamai.com
1d01ab399f
avformat/movenc: Added an option to disable SIDX atom
2018-12-11 10:52:16 +05:30
Lou Logan
0e8eb07980
doc/indevs: fix hdvbuffer typo in iec61883 example
...
Option name is dvbuffer.
Signed-off-by: Lou Logan <lou@lrcd.com>
2018-12-10 15:17:57 -09:00
Carl Hetherington
6190f873eb
lavc/tiff: Fix leak of yuv_line in TiffContext.
...
Signed-off-by: Carl Hetherington <cth@carlh.net>
2018-12-11 00:57:01 +01:00
Carl Eugen Hoyos
73251678c8
lavd/v4l2: Use "int request" as second parameter for ioctl() on Android.
...
Fixes build with new Android toolchain.
2018-12-11 00:49:22 +01:00
Carl Eugen Hoyos
73abde61bb
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);
^~~~~~~~~~~~~~~~~~~~
2018-12-11 00:40:26 +01:00
Paul B Mahol
03beac5b97
avcodec/xpmdec: define constants
2018-12-10 21:38:08 +01:00
Paul B Mahol
00502370f6
avcodec/xpmdec: fix small artifacts
...
The max size of uint8_t subset is 223 not 220.
2018-12-10 21:31:18 +01:00
Paul B Mahol
6a20876b62
avformat/gif: simplify signature writing
2018-12-10 21:13:15 +01:00
Carl Eugen Hoyos
fe300b2ab5
lavc/xpmdec: Allow more colours per character.
...
Fixes ticket #6234 .
2018-12-10 20:59:08 +01:00
Paul B Mahol
8affd753c8
avcodec/gifdec: truncate too big width/height for invalid gif files
...
Fixes #6874 .
2018-12-10 17:56:32 +01:00
Paul B Mahol
14156e607d
avformat/mxfenc: calculate and store DAR from user SAR
2018-12-10 17:35:38 +01:00
Paul B Mahol
5e0d54a031
avformat/mxfenc: allow muxing prores
2018-12-10 17:25:49 +01:00
Paul B Mahol
49d792fff6
avcodec/proresdec2: allow changing resolution
2018-12-10 17:25:49 +01:00