Fixes looping files without audio or when using stream_copy, where
ist->nb_samples is not set since no decoding is done.
This fixes ticket #5719 and also fixes an endless loop with the sample
in ticket #6139.
Signed-off-by: Peter Große <pegro@friiks.de>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Use global mask buffer for appropriate mask load.
Use immediate unsigned saturation for clip to max saving one vector register.
Remove unused macro.
Signed-off-by: Kaustubh Raste <kaustubh.raste@imgtec.com>
Reviewed-by: Manojkumar Bhosale <Manojkumar.Bhosale@imgtec.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Use global mask buffer for appropriate mask load.
Signed-off-by: Kaustubh Raste <kaustubh.raste@imgtec.com>
Reviewed-by: Manojkumar Bhosale <Manojkumar.Bhosale@imgtec.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Fixes: runtime error: left shift of 255 by 24 places cannot be represented in type 'int'
Fixes: 3787/clusterfuzz-testcase-minimized-5728764920070144
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Typically only a small subset of the SDL texture formats are supported directly
by the SDL renderer drivers, the rest is software emulated. It's better if
libswscale does the format conversion to a hardware-accelerated texture format
instead of SDL.
This should fix video render slowdowns with some texture formats after
3bd2228d05.
Signed-off-by: Marton Balint <cus@passwd.hu>
Use global mask buffer for appropriate mask load.
Signed-off-by: Kaustubh Raste <kaustubh.raste@imgtec.com>
Reviewed-by: Manojkumar Bhosale <Manojkumar.Bhosale@imgtec.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Use global mask buffer for appropriate mask load.
Signed-off-by: Kaustubh Raste <kaustubh.raste@imgtec.com>
Reviewed-by: Manojkumar Bhosale <Manojkumar.Bhosale@imgtec.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Load the specific destination bytes instead of MSA load and pack.
Remove unused macros and functions.
Signed-off-by: Kaustubh Raste <kaustubh.raste@imgtec.com>
Reviewed-by: Manojkumar Bhosale <Manojkumar.Bhosale@imgtec.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Replace avcodec_get_chroma_sub_sample with the recommended
av_pix_fmt_get_chroma_sub_sample, which fixes a compilation warning.
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
avcodec_get_chroma_sub_sample is deprecated and generates a warning
during build, so av_pix_fmt_get_chroma_sub_sample is used
Signed-off-by: Nicolas Frattaroli <ffmpeg@fratti.ch>
Signed-off-by: James Almer <jamrial@gmail.com>
* commit '84ab1cc437fa47a00532f305b9fe15b5b66c8c5e':
movenc: allow alternative hvc1 h.265 codec tag
movenc: write correct format hvcc when tag is hvc1
movenc: move tags definitions to where they are used
movenc: simplify codec_tag lookup
movenc: use correct tag list for AVOutputFormat.codec_tag
aarch64: vp9: Fix assembling with Xcode 6.2 and older
doc: Drop the legacy symlink to README
This commit is a noop, see
998609ddb895f3c85976e199d90da638d808d72e974d508e57369a3e111c
Merged-by: James Almer <jamrial@gmail.com>
Fixes: 2926/clusterfuzz-testcase-4987110014582784
This reduces decoding time from 7 to 4 seconds
The timeout should have been fixed in 0561bd2fc2 but ossfuzz did not close this issue
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Use immediate unsigned saturation for clip to max saving one vector register.
Signed-off-by: Kaustubh Raste <kaustubh.raste@imgtec.com>
Reviewed-by: Manojkumar Bhosale <Manojkumar.Bhosale@imgtec.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Remove loops and unroll as block sizes are known.
Load the specific destination bytes instead of MSA load and pack.
Remove unused macro and functions.
Signed-off-by: Kaustubh Raste <kaustubh.raste@imgtec.com>
Reviewed-by: Manojkumar Bhosale <Manojkumar.Bhosale@imgtec.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
For now, check the image size.
Inspired by a patch from Paul B Mahol.
Invalid sizes would be detected later by allocation failures,
detecting problems earlier is cleaner.
* commit 'fd1ffa1f10e940165035ccb79d4a6523da196062':
d3d11va: Link directly to dxgi.dll and d3d11.dll functions if LoadLibrary is unavailable
This commit is a noop, see 3125a4a8a8
Merged-by: James Almer <jamrial@gmail.com>
* commit 'c2b0bea40f1fd4399ff6184a2df4f397c0f4b3ab':
avconv_hw: Free device on initialisation failure
vf_hwmap: Properly free a locally derived device
vf_hwmap: Add missing error code
configure: Fix handling of _select dependencies
This commit is a noop, see
6dfcbd80add984b29b2170808859ddf434ddf48e
Merged-by: James Almer <jamrial@gmail.com>
* commit '2f792cb6703b5b12f2e873bee13f33da8aa9940a':
build: Add missing idctdsp dependency for clearvideo
build: Add missing mpeg4audio dependency for RTP muxer
This commit is a noop, see
52f954da75155f071bad
Merged-by: James Almer <jamrial@gmail.com>
* commit '4993a68f0f9285f92a42a54305dc0244665b7db4':
hwcontext: Mark local table static const
libfdk-aacdec: Correct buffer_size parameter
This commit is a noop, see
ca6776a9930b1794a43e
Merged-by: James Almer <jamrial@gmail.com>
* commit 'e2edf1529cb35eaf043e3f8e5cba498ed06e2563':
configure: Simplify AltiVec/VSX check with a helper function
Merged-by: James Almer <jamrial@gmail.com>
* commit '97cfe1d8bd1968143e2ba9aa46ebe9504a835e24':
Convert all AVClass struct declarations to designated initializers.
Merged-by: James Almer <jamrial@gmail.com>
* commit '98ea98069b40c34aa7b762096f8f380012a7dd84':
nvenc: Add default value for AVCodecContext::refs
This commit is a noop, see d8da329cc3
Merged-by: James Almer <jamrial@gmail.com>
* commit 'f9e7a2f95a7194a8736cc1416a03a1a0155a3e9f':
dxva: add support for new dxva2 and d3d11 hwaccel APIs
dxva: move d3d11 locking/unlocking to functions
dxva: preparations for new hwaccel API
lavc: set avctx->hwaccel before init
lavu: add new D3D11 pixfmt and hwcontext
This commit is a noop, see
3303511f33865360ba63ab28108a365659f7404770143a3954
Merged-by: James Almer <jamrial@gmail.com>
* commit 'ed434be106a4615e0419b3ac7664220741afda2d':
configure: Bail out if both GnuTLS and OpenSSL are enabled
configure: Move x86 assembler sanity check into assembler probe function
build: Add missing zlib dependencies for several protocols
This commit is a noop, see
6dfcbd80ad5cae5a1def4600b0619a
Merged-by: James Almer <jamrial@gmail.com>