James Almer
3cd275bcde
avcodec/libdav1d: use constants defined in the public API to limit thread count
...
Signed-off-by: James Almer <jamrial@gmail.com>
2018-11-28 23:04:21 -03:00
James Almer
53ca505acc
avcodec/libdav1d: remove init cleanup internal codec cap
...
It's no longer needed now that the AVFifoBuffer was removed.
Signed-off-by: James Almer <jamrial@gmail.com>
2018-11-28 23:04:03 -03:00
Rostislav Pehlivanov
ffec9d32fe
Revert "libopus: Add channel mapping 2 support in libopusdec"
...
This reverts commit c8c995bc1d
.
2018-11-28 23:54:08 +00:00
Rostislav Pehlivanov
cf283f2dfb
Revert "avcodec/libopusenc: Fix warning when encoding ambisonics with channel mapping 2"
...
This reverts commit 4cd6f08d20
.
2018-11-28 23:53:51 +00:00
Felicia Lim
4cd6f08d20
avcodec/libopusenc: Fix warning when encoding ambisonics with channel mapping 2
...
Also adds checks on the number of channels.
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2018-11-29 00:07:35 +01:00
Carl Eugen Hoyos
271a00043e
lavf/rawdec: Do not mark streams from raw subtitle demuxers as data streams.
...
Improves "ffmpeg -i" output for raw dvbsub files.
2018-11-28 22:51:37 +01:00
Paul B Mahol
68f289dacd
avcodec/opus: check if internal is available
2018-11-28 20:29:23 +01:00
Peter Ross
331715534a
avpriv_tempfile: add djgpp fallback
2018-11-28 22:16:07 +11:00
Peter Ross
8b7a1c2227
configure: memalign is broken on djgpp 2.05
...
djgpp 2.05 finally provides posix-compatible memalign, but it is broken,
so use malloc instead.
discussion: http://www.delorie.com/archives/browse.cgi?p=djgpp/2017/12/29/16:26:58
2018-11-28 22:16:07 +11:00
Peter Ross
dea1224754
additional math.h functions for djgpp
2018-11-28 22:16:07 +11:00
Peter Ross
533ba0b6b5
configure: detect djgpp libc
2018-11-28 22:16:07 +11:00
Paul B Mahol
18aea7bdd9
avcodec/opus: set skip_samples
...
Also update fate test. Fixes #5258 .
2018-11-28 10:26:07 +01:00
Mark Thompson
b9aff7a53d
hwcontext_opencl: Only release command queue if it exists
...
If the frames context creation fails then the command queue reference
need not exist when uninit is called.
2018-11-28 00:05:09 +00:00
Carl Eugen Hoyos
8cc5107705
lavf/Makefile: Fix demuxer dependencies: dvbsub, dvbtxt
...
Allow standalone compilation of the dvbsub and the dvbtxt demuxer.
2018-11-27 18:48:29 +01:00
Carl Eugen Hoyos
698574ac5d
ffmpeg: Avoid duplicating Closed Captions when increasing frame rate.
...
Fixes ticket #7506 .
2018-11-27 18:38:09 +01:00
Carl Eugen Hoyos
1893c72086
lavfi/fps: Avoid duplicating Closed Captions when increasing frame rate.
2018-11-27 18:38:03 +01:00
Michael Niedermayer
28c96c2ce2
avcodec/diracdec: Check component quant
...
Fixes: Timeout
Fixes: 10708/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_DIRAC_fuzzer-5730140957442048
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2018-11-27 14:38:03 +01:00
Andrey Semashev
1035206102
lavf/dashdec: Add webm to the list of allowed extensions.
...
This is in coherence with dashenc, which can now generate segments with
webm file name extension by default. Dashdec should be able to handle
such streams by default as well.
2018-11-27 11:27:19 +05:30
Jun Zhao
1ffac23885
fftools/ffmpeg: delete the unused code.
...
There are come from 2012 ago and have never been used from this
time.
Signed-off-by: Jun Zhao <mypopydev@gmail.com>
2018-11-27 10:45:25 +08:00
Jun Zhao
7608809ae4
fftools/ffprobe: Indent the code.
...
commit 196765a7cc
missed the reindet.
Signed-off-by: Jun Zhao <mypopydev@gmail.com>
2018-11-27 10:45:25 +08:00
Jun Zhao
e002ec332b
lavfi/buffersrc: Indent the code.
...
commit b0012de420
missed reindent.
Signed-off-by: Jun Zhao <mypopydev@gmail.com>
2018-11-27 10:45:25 +08:00
Michael Niedermayer
a036c25969
avcodec/tiff: Fix integer overflows in left shift in init_image()
...
Fixes: left shift of 255 by 24 places cannot be represented in type 'int'
Fixes: 11377/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_TIFF_fuzzer-5694319101476864
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2018-11-27 02:56:36 +01:00
Carl Eugen Hoyos
5a7617136a
lavc/jrevdct: Avoid an aliasing violation.
...
Fixes fate on different PowerPC systems with some compilers.
Analyzed-by: Lauri Kasanen
2018-11-27 01:16:28 +01:00
Kyle Swanson
fd2d6f376d
libavf/libvmaf: update docs
...
Signed-off-by: Kyle Swanson <kswanson@netflix.com>
2018-11-26 15:14:34 -08:00
Mark Harris
4361293fcf
avutil/mem: Fix invalid use of av_alloc_size
...
The alloc_size attribute is valid only on functions that return a
pointer. GCC 9 (not yet released) warns about invalid usage:
./libavutil/mem.h:342:1: warning: 'alloc_size' attribute ignored on a function returning int' [-Wattributes]
342 | av_alloc_size(2, 3) int av_reallocp_array(void *ptr, size_t nmemb, size_t size);
| ^~~~~~~~~~~~~
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2018-11-26 23:47:29 +01:00
Mark Harris
8108064043
avfilter/vf_chromashift: Fix mixed declaration and code
...
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2018-11-26 23:47:29 +01:00
Mark Harris
01dc152a92
avformat/vivo: Don't log null value
...
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2018-11-26 23:47:29 +01:00
James Almer
2ddaaaf595
avcodec/libaomenc: increase the default bitrate
...
aom_codec_enc_config_default() sets it to 256kbps, so don't replace
it with 200kbps.
See https://bugs.chromium.org/p/aomedia/issues/detail?id=2219
Signed-off-by: James Almer <jamrial@gmail.com>
2018-11-26 19:08:45 -03:00
Michael Niedermayer
90ac0e5f29
avcodec/tiff: Limit filtering to decoded data
...
Fixes: Timeout
Fixes: 11068/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_TIFF_fuzzer-5698456681709568
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Reviewed-by: Tomas Härdin <tjoppen@acc.umu.se>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2018-11-26 02:56:31 +01:00
Lauri Kasanen
46c5693ea3
swscale/output: Altivec-optimize yuv2plane1_8
...
./ffmpeg_g -f rawvideo -pix_fmt rgb24 -s hd1080 -i /dev/zero -pix_fmt yuv420p \
-f null -vframes 100 -v error -nostats -
1158 UNITS in planar1, 65528 runs, 8 skips
-cpuflags 0
19082 UNITS in planar1, 65533 runs, 3 skips
16.48 speedup ratio. On x86, SSE2 is ~7. Curiously, the Power C version
takes as many cycles as the x86 SSE2 version, yikes it's fast.
Note that this function uses VSX instructions, but is not marked so.
This is because several existing functions also make that mistake.
I'll submit a patch moving them once this is reviewed.
Signed-off-by: Lauri Kasanen <cand@gmx.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2018-11-26 02:56:25 +01:00
James Almer
cc25529420
avcodec/libdav1d: update the API usage after upstream changes
...
The color fields were moved to another struct, and a way to propagate
timestamps and other input metadata was introduced, so the packet fifo
can be removed.
Signed-off-by: James Almer <jamrial@gmail.com>
2018-11-25 21:42:10 -03:00
Martin Vignali
e488d7b4f5
fate/prores-metadata : make output bit exact
2018-11-25 22:21:20 +01:00
Paul B Mahol
7488d58436
avcodec/eac3dec: remove obsolete comment
2018-11-25 21:41:40 +01:00
Steven Liu
f9ea493147
avformat/hlsenc: remove the cannot reach result
...
fix CID: 1441166
because the logic have checked the vtt_dirname before
Signed-off-by: Steven Liu <lq@chinaffmpeg.org>
2018-11-25 18:35:57 +08:00
Limin Wang
370b8bd847
libavcodec/libdavs2.c: Fix for the wrong line size is used
...
Reviewed-by: Steven Liu <lq@chinaffmpeg.org>
2018-11-25 14:01:22 +08:00
Carl Eugen Hoyos
737b5f5869
configure: Add -Wno-char-subscripts.
...
Silences many warnings on systems with signed char where
the compiler cannot distinguish between char and int8_t.
2018-11-25 00:39:01 +01:00
Carl Eugen Hoyos
63c8558667
configure: Disable direct stripping on sunos.
...
Sunos strip doesn't know -o.
Reported-by: Michael Kostylev
2018-11-25 00:38:34 +01:00
Igor Derzhavin
f95c928f80
avformat/pcmdec: endianness for audio/L16 mime type
2018-11-25 00:25:03 +01:00
Igor Derzhavin
b058617fae
avformat/pcmdec: audio/L16 should be in network byte order by default (rfc 2586)
2018-11-25 00:24:58 +01:00
Igor Derzhavin
a80530a627
avformat/pcmdec: mime-type should be case insensitive (audio/L16)
2018-11-25 00:24:51 +01:00
Paul B Mahol
24386b1707
avformat/dhav: improve A/V sync
...
Actual stored timestamps take only 16bits.
2018-11-24 22:14:14 +01:00
Michael Niedermayer
2ae39d7956
avcodec/truemotion2: fix integer overflows in tm2_low_chroma()
...
Fixes: 11295/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_TRUEMOTION2_fuzzer-4888953459572736
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2018-11-24 22:12:10 +01:00
Martin Vignali
86e6f0dbc7
swscale : add support for YUVA444P12 and YUVA422P12
2018-11-24 16:24:47 +01:00
Martin Vignali
80b0624099
avutil : add YUVA444P12 and YUVA422P12
2018-11-24 16:24:43 +01:00
Paul B Mahol
b80003fe28
avformat: add DHAV demuxer
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2018-11-24 15:11:27 +01:00
Paul B Mahol
0279cb4f69
avcodec: add truehd_core bitstream filter
2018-11-23 22:03:56 +01:00
Andrey Semashev
fa08345e88
lavf/dashenc: Fix segment duration overflow on fine time bases.
...
When stream time bases are very fine grained (e.g. nanoseconds), 32-bit
segment duration may overflow for even for rather small segment duration
(about 4 seconds long). Therefore we use 64-bit values for segment duration.
2018-11-23 14:15:32 +05:30
Andreas Rheinhardt
e895b800fe
cbs_h2645: Avoid memcpy when splitting fragment
...
Now memcpy is avoided for NAL units that don't contain 0x03 escape
characters.
Improves performance of cbs_h2645_fragment_add_nals from 36940
decicycles to 6364 decicycles based on 8 runs with a 5.1 Mb/s H.264
sample (262144 runs each).
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@googlemail.com>
Signed-off-by: Mark Thompson <sw@jkqxz.net>
2018-11-22 23:19:17 +00:00
Paul B Mahol
97d1ee437b
avformat/movenc: get number of written bytes from bitstream writer
...
Update fate test.
2018-11-22 21:32:41 +01:00
Paul B Mahol
027f032bbc
avformat/movenc: fix size calculation in mov_write_eac3_tag()
...
Otherwise it would assert when flushing bits.
2018-11-22 10:18:15 +01:00