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>
6 years ago
Paul B Mahol
6bfc935232
avformat/nutdec: fix pts overflow
...
Probably fixes #6913 .
6 years ago
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>
6 years ago
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>
6 years ago
Paul B Mahol
78e7b70395
avformat/ffmetadec: do no limit size of tags to 1024
...
Use bprint API instead.
Fixes #4833 .
6 years ago
Fan Gang
c6e1966c1a
avcodec/ass_split: fix a memory leak defect when realloc fails
...
Fixes #7019 .
6 years ago
Paul B Mahol
ddefd05507
doc/metadata: fix error in timebase description
...
Fixes #7184 .
6 years ago
Paul B Mahol
d9a91d58a1
avformat/movenc: treat ALAC same as FLAC and write correct info
...
Fixes #7291 .
6 years ago
Paul B Mahol
5e6b93bb4d
avformat/id3v2: use png header to get PNG signature
6 years ago
Paul B Mahol
e9817636a7
avformat/flac_picture: try to guess PNG by actual picture data
...
Fixes #5028 .
6 years ago
Paul B Mahol
6f058b5cef
avformat/nut: add support for yuva444/422p12 pixel format
6 years ago
Paul B Mahol
f2179afb01
avformat/nutdec: fix obvious typo
...
Fixes #6742 .
6 years ago
Paul B Mahol
e5a0013c4a
avformat/mxfdec: fix error check in macro
...
Fixes #6750 .
6 years ago
Paul B Mahol
8c9fff6183
avcodec/xfacedec: fix order of operations
...
Fixes #6745 .
6 years ago
Paul B Mahol
0ed678a97a
bump micro after recent gif changes
6 years ago
Paul B Mahol
ec8502f9cb
avcodec/gif: use avctx->frame_number
6 years ago
Paul B Mahol
0aa5a7b2e9
avformat/gifdec: export duration, nb_frames and comment
6 years ago
Paul B Mahol
f2664a306f
avcodec/codec_desc: extend gif description
6 years ago
Paul B Mahol
280b432464
avformat/gif: extend description
6 years ago
Paul B Mahol
bb0984cc29
avcodec/gif: enable encoding single gif image per frame
...
Unbreaks gif image2 muxer.
6 years ago
Paul B Mahol
80f0f8660c
avformat/gifdec: export sample aspect ratio
6 years ago
Paul B Mahol
3f8cdd4ee3
avcodec/gif: add support for alpha
...
Based on patch by Bjorn Roche.
Fixes #6813 .
6 years ago
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 .
6 years ago
Paul B Mahol
102c11745e
avformat/utils: add support for reading ID3 tags at start of wav
...
Fixes #4140 .
6 years ago
Paul B Mahol
f5aad350d3
avformat/wavdec: add support for 'id3 ' chunk
...
Fixes #5700 .
6 years ago
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));
6 years ago
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>
6 years ago
James Almer
0e833f615b
avcodec/libdav1d: add support for 12bit streams
...
Signed-off-by: James Almer <jamrial@gmail.com>
6 years ago
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>
6 years ago
Lou Logan
11817c3316
doc/indevs: document libdc1394 options
...
Signed-off-by: Lou Logan <lou@lrcd.com>
6 years ago
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.
6 years ago
Paul B Mahol
dd7d6034f1
avfilter/vf_paletteuse: fix flags for alpha_threshold option
6 years ago
James Almer
9c49933a3e
configure: require the first stable version of libdav1d
...
Signed-off-by: James Almer <jamrial@gmail.com>
6 years ago
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
6 years ago
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.
6 years ago
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.
6 years ago
kjeyapal@akamai.com
1d01ab399f
avformat/movenc: Added an option to disable SIDX atom
6 years ago
Lou Logan
0e8eb07980
doc/indevs: fix hdvbuffer typo in iec61883 example
...
Option name is dvbuffer.
Signed-off-by: Lou Logan <lou@lrcd.com>
6 years ago
Carl Hetherington
6190f873eb
lavc/tiff: Fix leak of yuv_line in TiffContext.
...
Signed-off-by: Carl Hetherington <cth@carlh.net>
6 years ago
Carl Eugen Hoyos
73251678c8
lavd/v4l2: Use "int request" as second parameter for ioctl() on Android.
...
Fixes build with new Android toolchain.
6 years ago
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);
^~~~~~~~~~~~~~~~~~~~
6 years ago
Paul B Mahol
03beac5b97
avcodec/xpmdec: define constants
6 years ago
Paul B Mahol
00502370f6
avcodec/xpmdec: fix small artifacts
...
The max size of uint8_t subset is 223 not 220.
6 years ago
Paul B Mahol
6a20876b62
avformat/gif: simplify signature writing
6 years ago
Carl Eugen Hoyos
fe300b2ab5
lavc/xpmdec: Allow more colours per character.
...
Fixes ticket #6234 .
6 years ago
Paul B Mahol
8affd753c8
avcodec/gifdec: truncate too big width/height for invalid gif files
...
Fixes #6874 .
6 years ago
Paul B Mahol
14156e607d
avformat/mxfenc: calculate and store DAR from user SAR
6 years ago
Paul B Mahol
5e0d54a031
avformat/mxfenc: allow muxing prores
6 years ago
Paul B Mahol
49d792fff6
avcodec/proresdec2: allow changing resolution
6 years ago
Paul B Mahol
eade85bbbd
avformat: add gif pipe demuxer
6 years ago