James Almer
88e2e31d34
avcodec/libxavs: make dia the default for motion-est
...
This will make the default behavior the same as it was with me_method.
7 years ago
James Almer
e08897619e
avcodec/libxvid: make 4 the default for me_quality
...
This will make the default behavior the same as it was with me_method.
7 years ago
Mark Thompson
e7d20d5e35
movtextdec: Move declaration out of for initialisation statement
7 years ago
Mark Thompson
e0a967a405
cinepakenc: Move declaration out of for initialisation statement
...
(cherry picked from commit 92f0aceb36
)
7 years ago
Mark Thompson
4dee92f6bc
hevc: Fix aligned array declarations
...
(cherry picked from commit d41e10c148
)
7 years ago
James Almer
5ae972f63b
avcodec/v4l2_m2m_enc: fix usage of deprecated codec flag
7 years ago
Rostislav Pehlivanov
efb79cabb2
libavcodec/version: add a comment about FF_API_MPV_OPT deprecation
...
In order to prevent it from being forgotten and delayed until the next bump.
Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com>
7 years ago
James Almer
75bd215727
avcodec/version: re-enable FF_API_MPV_OPT until the open ABI period is over
...
ffserver depends on it, so keep it in place until the two can be
removed together.
7 years ago
Michael Bradshaw
279dc40716
lavc: drop support for OpenJPEG 1.3-2.0
...
We now require 2.1+ with pkg-config.
Signed-off-by: Michael Bradshaw <mjbshaw@google.com>
7 years ago
wm4
b46a77f19d
lavc: external hardware frame pool initialization
...
This adds a new API, which allows the API user to query the required
AVHWFramesContext parameters. This also reduces code duplication across
the hwaccels by introducing ff_decode_get_hw_frames_ctx(), which uses
the new API function. It takes care of initializing the hw_frames_ctx
if needed, and does additional error handling and API usage checking.
Support for VDA and Cuvid missing.
Signed-off-by: Anton Khirnov <anton@khirnov.net>
7 years ago
Mark Thompson
c37de51920
vorbis: Reorder conditions to avoid possible overread
...
This can trigger a single-byte overread if the codebook has the maximum
number of entries.
Fixes #6743 .
7 years ago
Mark Thompson
242d8c8763
opusenc: Fix double-declaration of variable
7 years ago
Mark Thompson
32a618a948
vaapi_h264: Do not use deprecated header type
...
SEI headers should be inserted as generic raw data (the old specific
type has been deprecated in libva2).
7 years ago
Mark Thompson
03b1470088
vaapi_h264: Add missing return value check
...
Fixes CID 1419829.
7 years ago
Mark Thompson
41272e112b
cbs_h264: Fix memory leak in error case
...
Fixes CID 1419834.
7 years ago
Mark Thompson
d792613bad
h264_metadata: Fix clearing SEI payload in error case
...
Fixes CID 1419832, 1419835.
7 years ago
Mark Thompson
624d4739db
cbs_h264: Fix writing streams with auxiliary pictures
...
Tested with the alphaconformanceG sample.
Fixes CID 1419836.
(cherry picked from commit 9ed18f302b
)
7 years ago
James Almer
d2917501c2
avcodec/cfhd: support cropped height tag
...
Ported from libav. Authored by one of the following:
Anton Khirnov <anton@khirnov.net>
Diego Biurrun <diego@biurrun.de>
Vittorio Giovara <vittorio.giovara@gmail.com>
Reviewed-by: kierank
Signed-off-by: James Almer <jamrial@gmail.com>
7 years ago
Luca Barbato
98afe3fb71
qsv: Make the hevc idr_interval consistent with the h264 one
...
According to the MediaSDK documentation the idr_interval value has
a different meaning depending on the codec:
0 in H264 means make every I-frame IDR, in HEVC it means to have
it only at the beginning.
1 in H264 means every other I-frame is not-IDR, in HEVC it means
that every I-frame is IDR.
Keep the behaviour consistent between the two encoders by increasing
by 1 internally the idr_interval value for HEVC.
7 years ago
Martin Storsjö
732510636e
aarch64: Remove a dot from a label
...
This fixes building with armasm64 (when run through gas-preprocessor).
Signed-off-by: Martin Storsjö <martin@martin.st>
7 years ago
Mark Thompson
a6cfc287a0
Changelog: Add metadata bitstream filters
...
This starts a new section - 3.4 has been released.
7 years ago
Mark Thompson
d8928ad6b6
vaapi_mpeg2: Convert to use coded bitstream infrastructure
...
(cherry picked from commit 10eb496d9a
)
7 years ago
Mark Thompson
038a51258c
vaapi_h265: Add support for AUD NAL units
...
Matching the H.264 encoder.
(cherry picked from commit e3e8eab359
)
7 years ago
Mark Thompson
00179664bc
vaapi_h265: Convert to use coded bitstream infrastructure
...
Also improves the metadata and generally makes the configuration
a bit cleaner.
(cherry picked from commit ac12486714
)
7 years ago
Mark Thompson
94a4048619
vaapi_h264: Fix CPB/DPB delays
...
This should be ticks, not time_scale steps - it was wrong for all
framerates not a multiple of 1/2.
(cherry picked from commit 30645174e3
)
7 years ago
Mark Thompson
0bc7575ced
vaapi_h264: Add support for SEI recovery points
...
Included by default with non-IDR intra frames.
(cherry picked from commit a49ee60d5f
)
7 years ago
Mark Thompson
281b68b026
vaapi_h264: Add support for AUD NAL units
...
Adds a new private option to enable them (off by default).
(cherry picked from commit 820a4483af
)
7 years ago
Mark Thompson
2e29ca2a9f
vaapi_h264: Convert to use coded bitstream infrastructure
...
(cherry picked from commit 7a4fac5e91
)
7 years ago
Mark Thompson
569721ac8d
lavc: Add mpeg2_metadata bitstream filter
...
(cherry picked from commit b78c30d7ec
)
7 years ago
Mark Thompson
278c308cea
mpeg12: Add a common function to find the best frame rate
...
This will be used later in both the mpeg2_metadata filter and the
VAAPI MPEG-2 encoder. Also adds a unit test.
(cherry picked from commit b5859e0b04
)
7 years ago
Mark Thompson
03f982bbca
lavc: Add hevc_metadata bitstream filter
...
This is able to modify some header metadata found in the VPS/SPS/VUI,
and can also add/remove AUDs.
(cherry picked from commit b31a9eae02
)
7 years ago
Mark Thompson
8b26306294
lavc: Add h264_redundant_pps bitstream filter
...
This applies a specific fixup to some Blu-ray streams which contain
redundant PPSs modifying irrelevant parameters of the stream which
confuse other transformations which require correct extradata.
A new single global PPS is created, and all of the redundant PPSs
within the stream are removed.
(cherry picked from commit e6874bc3af
)
7 years ago
Mark Thompson
a308872b04
lavc: Add h264_metadata bitstream filter
...
This is able to modify some header metadata found in the SPS/VUI,
and can also add/remove AUDs and insert user data in SEI NAL units.
(cherry picked from commit 9e93001b61
)
(cherry picked from commit c42b62d1f9
)
7 years ago
Mark Thompson
9c7d70b49b
lavc: Add trace_headers bitstream filter
...
Supports all streams that the coded bitstream infrastructure does
(currently H.264, H.265 and MPEG-2).
(cherry picked from commit f11d8a5e8b
)
7 years ago
Mark Thompson
686e388bbb
lavc: Add coded bitstream read/write support for MPEG-2
...
(cherry picked from commit 2bc9ba8d3c
)
(cherry picked from commit a41b69b5eb
)
7 years ago
Mark Thompson
9b0c7aa0e4
lavc: Add coded bitstream read/write support for H.265
...
(cherry picked from commit 867381b8b5
)
(cherry picked from commit f763489364
)
(cherry picked from commit 067a9ddeb8
)
7 years ago
Mark Thompson
b4c915f4b3
lavc: Add coded bitstream read/write support for H.264
...
(cherry picked from commit acf06f4544
)
(cherry picked from commit 768eb9182e
)
(cherry picked from commit e7f64191b2
)
7 years ago
Mark Thompson
6734eef6b8
lavc: Add coded bitstream read/write API
...
(cherry picked from commit 18f1706f33
)
(cherry picked from commit 44cde38c8a
)
7 years ago
Mark Thompson
b1374e925c
hevc: Improve stream constraint values in common header
...
Add comments to describe the sources of the constraint values expressed here,
and add some more related values which will be used in following patches.
Fix the incorrect values for SPS and PPS count (they are not the same as those
used for H.264), and remove HEVC_MAX_CU_SIZE because it is not used anywhere.
(cherry picked from commit b88da98b34
)
7 years ago
Mark Thompson
d05444d2c6
h264: Add stream constraint values to the common header
...
With comments describing the derivation of each value.
(cherry picked from commit aaf4414650
)
7 years ago
Diego Biurrun
1c5f264787
mss1: Add missing macro parameters to ARITH_GET_* macros
...
It is wrong to pass no arguments to a macro that expects one argument
and some compilers complain.
7 years ago
Martin Vignali
7480f232d2
libavcodec/texturedspenc : indent after add rgtc1u_alpha func
...
Signed-off-by: Tom Butterworth <bangnoise@gmail.com>
7 years ago
Martin Vignali
92500c7bc5
libavcodec/texturedsp : indent after add rgtc1u_alpha func
...
Signed-off-by: Tom Butterworth <bangnoise@gmail.com>
7 years ago
Martin Vignali
50a20de6b9
libavcodec/texturedspenc : add rgtc1_u_alpha encoding func
...
this func encode the alpha channel of the rgba input
to an rgtc1u block
Signed-off-by: Tom Butterworth <bangnoise@gmail.com>
7 years ago
Martin Vignali
d4d4629dfe
libavcodec/texturedsp : add rgtc1u_alpha decoding func
...
this func decode an rgtc1 texture and overwrite only the alpha channel
of the dest RGBA picture
Signed-off-by: Tom Butterworth <bangnoise@gmail.com>
7 years ago
Michael Niedermayer
963247b5f3
avcodec/dvbsubdec: Split best score computation out of loop in compute_default_clut()
...
3% faster
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
7 years ago
Michael Niedermayer
cd2f69cdd6
avcodec/dvbsubdec: Factor a few expressions out of compute_default_clut()
...
32% faster loop
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
7 years ago
Michael Niedermayer
393d6fc739
avcodec/snowdec: Check mv_scale
...
Fixes: runtime error: signed integer overflow: 2 * -1094995530 cannot be represented in type 'int'
Fixes: 3512/clusterfuzz-testcase-minimized-4812747210489856
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
7 years ago
Michael Niedermayer
9c85329cd0
avcodec/pafvideo: Check for bitstream end in decode_0()
...
Fixes: Timeout
Fixes: 3529/clusterfuzz-testcase-5057068371279872
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
7 years ago
Luca Barbato
077011b5af
qsv: Expose idr_interval for hevc as well
7 years ago