Shiyou Yin
5c806d5b54
configure: enable mipsfpu for loongson platform.
...
mipsfpu supported by loongson 3a2000,3a3000,3a4000,2k1000, Fate tests passed.
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2018-11-30 19:20:19 +01:00
Paul B Mahol
f09bbb8f08
avformat/ac3dec: always skip junk bytes before sync bytes
...
Fixes #7278 .
2018-11-30 16:27:20 +01:00
Linjie Fu
67cdfcf694
lavc/qsvenc: assert uninitialized pict_type
...
Assert in function ff_qsv_encode to avoid using uninitialized value:
FF_DISABLE_DEPRECATION_WARNINGS
avctx->coded_frame->pict_type = pict_type;
FF_ENABLE_DEPRECATION_WARNINGS
Signed-off-by: Linjie Fu <linjie.fu@intel.com>
Signed-off-by: Zhong Li <zhong.li@intel.com>
2018-11-30 17:53:26 +08:00
Zhong Li
ac0bcd6b61
lavc/qsvenc: add forced_idr option
...
This option can be used to repect original input I/IDR frame type.
Reviewed-by: Mark Thompson <sw@jkqxz.net>
Signed-off-by: Zhong Li <zhong.li@intel.com>
2018-11-30 17:53:00 +08:00
Zhong Li
518b963d2c
lavc/qsvenc: enable ICQ and ICQ_LA on Linux
...
ICQ/ICQ_LA are enabled with MSDK V1.28
Reviewed-by: Mark Thompson <sw@jkqxz.net>
Signed-off-by: Zhong Li <zhong.li@intel.com>
2018-11-30 17:51:49 +08:00
Steven Liu
ba71ebbbfa
avformat/dashdec: add subtitle stream support
...
Signed-off-by: Steven Liu <lq@chinaffmpeg.org>
2018-11-30 16:39:19 +08:00
Jun Zhao
b87063c06d
lavc/libaomenc: Add a maximum constraint of 64 encoder threads.
...
fixed the error in Intel(R) Xeon(R) Gold 6152 CPU like:
[libaom-av1 @ 0x469f340] Failed to initialize encoder: Invalid parameter
[libaom-av1 @ 0x469f340] Additional information: g_threads out of range [..MAX_NUM_THREADS]
Signed-off-by: Jun Zhao <mypopydev@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
2018-11-29 21:37:49 -03:00
James Almer
e695b0beba
avcodec/libdav1d: add an option to toggle Film Grain
...
Signed-off-by: James Almer <jamrial@gmail.com>
2018-11-28 23:05:10 -03:00
James Almer
0fca2f60da
avcodec/libdav1d: read profile from the sequence header referenced by the ouput picture
...
Signed-off-by: James Almer <jamrial@gmail.com>
2018-11-28 23:04:22 -03:00
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