Andrew D'Addesio
511e6f17f4
opus_silk: Fix arithmetic overflow (per RFC8251)
...
As per Sec.6 of RFC8251:
Integer Wrap-Around in Inverse Gain Computation
32-bit integer overflow in Levinson recursion. Affects
silk_is_lpc_stable().
Signed-off-by: Andrew D'Addesio <modchipv12@gmail.com >
2017-12-04 07:28:45 +00:00
Andrew D'Addesio
9b45bcf713
libavutil: Add saturating subtraction functions
...
Add av_sat_sub32 and av_sat_dsub32 as the subtraction analogues to
av_sat_add32/av_sat_dadd32.
Also clarify the formulas for dadd32/dsub32.
Signed-off-by: Andrew D'Addesio <modchipv12@gmail.com >
2017-12-04 07:28:45 +00:00
James Almer
b73304f79e
x86vf_threshold/: use the PBLENDVB macro
...
Fixes building with yasm
Tested-by: stevenliu
Signed-off-by: James Almer <jamrial@gmail.com >
2017-12-04 02:22:30 -03:00
Steven Liu
1cfde7abd0
avformat/dashenc: add avpriv_io_move return value check
...
fix cid: 1424883
Suggested-by: Moritz Barsnick <barsnick@gmx.net >
Signed-off-by: Steven Liu <lq@chinaffmpeg.org >
2017-12-04 12:06:26 +08:00
Steven Liu
ad6946b818
avformat/hlsplaylist: add return value check of strftime
...
fix CID: 1424884
Signed-off-by: Steven Liu <lq@chinaffmpeg.org >
2017-12-04 12:05:04 +08:00
Steven Liu
071f47649c
avformat/hlsplaylist: add int type of API ff_hls_write_file_entry
...
Signed-off-by: Steven Liu <lq@chinaffmpeg.org >
2017-12-04 12:03:37 +08:00
Robert Nagy
31b351ea81
avformat/hlsenc: fix baseurl missing last char
...
Reviewed-by: Steven Liu <lq@onvideo.cn >
2017-12-04 12:00:13 +08:00
Carl Eugen Hoyos
894f1c399b
lavf/mov: Fix missing newline.
2017-12-04 04:15:49 +01:00
Marton Balint
5a93a85fd0
avformat/mxfdec: fix last packet timestamps
...
The current edit unit cannot be reliably determined for the last packet of a
video stream, because we can't query the start offset of the next edit unit
from the index. This caused missing timestamps for the last video packet.
Therefore from now on, we allow setting the PTS even if we are not sure of the
current edit unit if mxf_set_current_edit_unit returned a specific failure, and
the assumed current edit unit is the last.
Fixes last packet timestamp of:
ffprobe -fflags nofillin -show_packets tests/data/lavf/lavf.mxf -select_streams v
Signed-off-by: Marton Balint <cus@passwd.hu >
2017-12-03 21:06:47 +01:00
Martin Vignali
6e3e696591
avfilter/x86/vf_threshold : cosmetic indent
2017-12-03 19:17:28 +01:00
Martin Vignali
9719d57b34
avfilter/x86/vf_threshold : add avx2 version for threshold 8
2017-12-03 19:17:23 +01:00
Martin Vignali
51345cb1d5
avfilter/x86/vf_threshold : make macro for threshold8 in order to add avx2 version
2017-12-03 19:17:19 +01:00
Martin Vignali
cfce442750
checkasm/vf_threshold : add checkasm test for threshold8
2017-12-03 19:17:15 +01:00
Martin Vignali
fa470384ea
avfilter/vf_threshold : move context func init in ff_threshold_init
2017-12-03 19:17:11 +01:00
Jim DeLaHunt
42a22d01d1
doc: reorganize developer.texi chapter hierarchy
...
Previously, the Developer Documentation <ffmpeg.org/developer.html>
contained a single chapter, "1. Developer Guide," with all content under
that single chapter. Thus the document structure was one level deeper
and more complicated than it needed to be. It differed from similar
documents such as /faq.html, which have multiple chapters.
Eliminate the single chapter, and promote each section underneath to
chapter, and each subsection to section. Thus content and relative
structure remains the same, but the overall structure is simpler.
Anchors within the page remain the same.
Signed-off-by: Jim DeLaHunt <from.ffmpeg-dev@jdlh.com >
Signed-off-by: Timothy Gu <timothygu99@gmail.com >
2017-12-02 21:07:48 -08:00
Michael Niedermayer
4bb7d72bcf
avcodec/h264_parse: Treat escaped and unescaped decoding error equal in decode_extradata_ps_mp4()
...
Fixes: lorex.mp4
Fixes: ticket6762
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-12-03 02:23:35 +01:00
Paul B Mahol
225341b20d
avfilter/vf_stack: always copy SAR from first input
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2017-12-02 23:29:49 +01:00
John Stebbins
00d454ed2c
lavf/movenc: add sdtp (sample dependency) box
...
The sdtp is required by the AppleTV 4K in order to play 2160p60 video.
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-12-02 19:14:34 +01:00
Dale Curtis
09494d0984
avformat/oggdec: Respect AVERROR codes returned by ogg parsers.
...
Fixes ticket #6804 . All of the ogg header and packet parsers may
return standard AVERROR codes; these return values should not be
treated as success.
Additionally changes oggparsevorbis, to not give up too early
with certain types of poorly muxed files.
Signed-off-by: Dale Curtis <dalecurtis@chromium.org >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-12-02 19:14:23 +01:00
Thomas Köppe
53c492640c
avutil/mem: Add DECLARE_ASM_ALIGNED macro for DJGPP architecture.
...
The macro was added in 43171a2a73
, but I forgot to add it to the DJGPP architecture in that change.
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-12-02 19:14:09 +01:00
Martin Vignali
be6d1f9632
avcodec/x86/bswapdsp : use macro for 128 bits constants loading in xmm or ymm
2017-12-02 18:25:25 +01:00
Martin Vignali
b37196adff
avutil/x86util : add macro for loading a 128 bits constants in an xmm or in each part of an ymm in order to simplify avx2 asm func
2017-12-02 18:25:15 +01:00
Mark Thompson
e171022c24
vaapi: Make the decode profile matching more explicit
...
Also fixes a bug where it could attempt to decode with an unsupported
codec if allow-profile-mismatch was set.
2017-12-02 15:21:31 +00:00
Jun Zhao
4b57f06447
vaapi_h264: Fix VUI max_dec_frame_buffering
...
This should refer to the existing SPS structure, not the VAAPI sequence
parameter buffer (which is not yet initialised).
From ffmpeg commit f31478ba14
.
Signed-off-by: Mark Thompson <sw@jkqxz.net >
2017-12-02 15:21:31 +00:00
Mark Thompson
5a6707e49b
cbs_mpeg2: Fix marker_bit type
2017-12-02 15:21:30 +00:00
Jun Zhao
e7adf2250b
vaapi_h265: Enable VBR mode
...
To match vaapi_h264.
From ffmpeg commit 385cafb07a
.
Signed-off-by: Mark Thompson <sw@jkqxz.net >
2017-12-02 15:21:30 +00:00
Mark Thompson
7bf3f38046
cbs: Add padding to slice data allocations
...
These may be read by the bitstream reader, so they should include the
necessary padding for overreads.
2017-12-02 15:21:30 +00:00
Paul B Mahol
bbfcb1b7c8
avfilter/vf_threshold: add x86 SIMD
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2017-12-02 14:58:56 +01:00
Michael Niedermayer
b5587fd2c6
avcodec/jpeg2000: Only allocate Jpeg2000Pass for the encoder
...
Reduces memory needed.
Fixes: OOM
Fixes: 4427/clusterfuzz-testcase-minimized-5106919271301120
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-12-01 23:12:07 +01:00
Michael Niedermayer
0674087004
avcodec/j2kenc: Fix out of array access in encode_cblk()
...
Fixes: 4427/clusterfuzz-testcase-minimized-5106919271301120
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-12-01 23:12:07 +01:00
Michael Niedermayer
0409d33311
avcodec/hevcdsp_template: Fix undefined shift in put_hevc_epel_bi_w_h()
...
Fixes: runtime error: left shift of negative value -127
Fixes: 4397/clusterfuzz-testcase-minimized-4779061080489984
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-12-01 23:12:07 +01:00
Mark Thompson
a763d27827
examples/vaapi_encode: Fix leak on hwframe init failure
...
Fixes CID #1424882 .
2017-12-01 21:12:45 +00:00
Jan Ekström
6939b3cb9d
mediacodecdec: fix build by including hwaccel.h
...
Enables the decoder to utilize the type AVCodecHWConfigInternal.
2017-12-01 22:51:53 +02:00
Martin Vignali
9bed17cd0f
checkasm/utvideo : be more explicit to the WIDTH_PADDED define
2017-12-01 21:08:07 +01:00
Paul B Mahol
e1dd97bd4c
avfilter: add fillborders filter
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2017-12-01 18:57:24 +01:00
Dale Curtis
95bacb521a
avcodec/vorbis: Fix another 1 << 31 > int32_t::max() with 1u.
...
Didn't notice this one when 9648cc6d
was landed.
Signed-off-by: Dale Curtis <dalecurtis@chromium.org >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-12-01 17:46:12 +01:00
Paul B Mahol
2cfc8b172c
avfilter/vf_tile: add init_padding option
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2017-12-01 10:55:30 +01:00
James Almer
e01d2c00ae
avcodec/h264_slice: use H264_SEI_FpaType enum constants
...
Cosmetic change.
Signed-off-by: James Almer <jamrial@gmail.com >
2017-12-01 01:18:47 -03:00
James Almer
5e9b39b373
avcodec/h264_sei: remove redundant prefix to H264SEIFramePacking fields
...
Cosmetic change.
Signed-off-by: James Almer <jamrial@gmail.com >
2017-12-01 01:10:11 -03:00
Jacob Trimble
83ecdc9a92
configure: Fix dependencies of aac_at decoder.
...
Signed-off-by: Jacob Trimble <modmaker@google.com >
Signed-off-by: James Almer <jamrial@gmail.com >
2017-11-30 20:25:04 -03:00
John Stebbins
2d015d3bf9
lavf/mov: fix huge alloc in mov_read_ctts
...
An invalid file may cause huge alloc. Delay expansion of ctts entries
until the number of samples is known in mov_build_index.
Fixes: 23
Found-by: zhao dongzhuo, AD-lab of Venustech
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-12-01 00:07:30 +01:00
Tristan Matthews
f6161fccf8
rtsp: only break on parse_rtsp_message on error
...
Fix suggested by Luca Barbato.
This was causing spurious EOFs when using -rtsp_transport udp, as
reported in https://bugzilla.libav.org/show_bug.cgi?id=1103
Signed-off-by: Luca Barbato <lu_zero@gentoo.org >
2017-11-30 15:32:04 +01:00
Carl Eugen Hoyos
d13b8f68d7
lavfi/libvmaf: Rename local variable "main" as "master".
...
Fixes the following warning:
libavfilter/vf_libvmaf.c:179:14: warning: 'main' is usually a function
Missed in 5d3e9357
2017-11-30 14:13:15 +01:00
James Almer
5a366f9770
configure: select vp9_superframe_split_bsf when enabling vp9_decoder
...
This is required since a5679933c1
Signed-off-by: James Almer <jamrial@gmail.com >
2017-11-30 01:51:16 -03:00
James Almer
8d33e86616
avformat/avc: support writting more than one sps/pps in ff_isom_write_avcc
...
Addresses ticket #6864
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc >
Signed-off-by: James Almer <jamrial@gmail.com >
2017-11-30 00:17:41 -03:00
James Almer
d5af8afbe4
avformat/avc: free buffer in ff_isom_write_avcc on failure
...
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc >
Signed-off-by: James Almer <jamrial@gmail.com >
2017-11-30 00:17:41 -03:00
James Almer
df20619b64
avformat/avc: reindent after the last commit
...
Signed-off-by: James Almer <jamrial@gmail.com >
2017-11-30 00:17:41 -03:00
James Almer
9cd361c5c1
avformat/avc: refactor ff_isom_write_avcc
...
This lets us remove one indentation level.
Signed-off-by: James Almer <jamrial@gmail.com >
2017-11-30 00:17:41 -03:00
James Almer
ae7df68edd
avformat/avc: return an error in ff_isom_write_avcc if the buffer lenght is too small
...
Signed-off-by: James Almer <jamrial@gmail.com >
2017-11-30 00:17:41 -03:00
Karthick J
8c2b37e678
avformat/dashenc: Option to generate hls playlist as well
...
This is to take full advantage of Common Media Application Format(CMAF).
Now server can generate one content and serve both HLS and DASH players.
Reviewed-by: Steven Liu <lq@onvideo.cn >
2017-11-30 10:55:51 +08:00