James Almer
e33b162c7d
avcodec/h2645_sei: use the RefStruct API for film_grain_characteristics
...
And ensure the buffer is synced between threads.
Based on a patch by Dale Curtis <dalecurtis@chromium.org>
Signed-off-by: James Almer <jamrial@gmail.com>
2 months ago
James Almer
fd4a2c9b02
avcodec/aom_film_grain: allocate film grain metadata dynamically
...
This removes the ABI breaking use of sizeof(AVFilmGrainParams), and achieves the
same size reduction to decoder structs as 08b1bffa49
.
Signed-off-by: James Almer <jamrial@gmail.com>
2 months ago
James Almer
24141a7140
avcodec/h2645_sei: fix parsing AOM grain provider_oriented_code
...
The value is 16 bits big endian, not a single byte.
Signed-off-by: James Almer <jamrial@gmail.com>
2 months ago
James Almer
91b6ba653e
Revert "avcodec/h2645: allocate film grain metadata dynamically"
...
AVFilmGrainAFGS1Params, the offending struct, is using sizeof(AVFilmGrainParams)
when it should not. This change also forgot to make the necessary changes to the
frame threading sync code.
Both of these will be fixed by the following commit.
H274FilmGrainDatabase will be handled later.
This reverts commit 08b1bffa49
.
Signed-off-by: James Almer <jamrial@gmail.com>
2 months ago
James Almer
9ec042c1aa
avcodec/x86/vvc: add prototypes for OF functions
...
And wrap the implemtation in preprocessor checks.
Should fix ticket #11282 .
Signed-off-by: James Almer <jamrial@gmail.com>
2 months ago
Frank Plowman
1e5f24d1a6
lavc/vvc: Remove floating point logic
...
This was the only floating point logic in the native VVC decoder.
Signed-off-by: Frank Plowman <post@frankplowman.com>
2 months ago
Zhao Zhili
994368be8f
x86/vvc: Fix build error for arch x86_32
...
There were static functions which built for x86_32, but the simd
functions they reference only available for x86_64.
2 months ago
Nuo Mi
c49001e338
avcodec/cbs_h266: Fix regression in DVB clip introduced by 93281630a7
...
This commit introduced a regression to VVC_HDR_UHDTV1_OpenGOP_3840x2160_50fps_HLG10_mosaic.ts.
Root Cause:
The AV_CEIL_RSHIFT(a, b) macro uses bit tricks that work only when -a is a negative value.
However, due to integer promotion rules, this behavior does not extend to the unsigned int type.
See "6.3.1.1 Boolean, characters, and integers" in the "ISO/IEC 9899" for details.
Reported-by: Frank Plowman <post@frankplowman.com>
2 months ago
Michael Niedermayer
96d45c3b21
avformat/vividas: Check avio_read() for failure
...
Fixes: use of uninitialized value (untested)
Fixes: 42537627/clusterfuzz-testcase-minimized-fuzzer_loadfile_direct-5505802505355264
Found-by: ossfuzz
Reported-by: Kacper Michajlow
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2 months ago
Michael Niedermayer
e30d957a9b
avformat/ilbc: Check avio_read() for failure
...
Fixes: use of uninitialized value
Fixes: 42537627/clusterfuzz-testcase-minimized-fuzzer_protocol_memory-6656646223298560-cut
Found-by: ossfuzz
Reported-by: Kacper Michajlow
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2 months ago
Michael Niedermayer
898f6582eb
avformat/nistspheredec: Clear buffer
...
Fixes: use-of-uninitialized-value
Fixes: 42537627/clusterfuzz-testcase-minimized-fuzzer_protocol_memory-6515855798632448-cut
Found-by: ossfuzz
Reported-by: Kacper Michajlow
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2 months ago
Michael Niedermayer
bf8e43083f
avformat/mccdec: Initialize and check rate.den
...
Fixes: Assertion c > 0 failed at libavutil/mathematics.c:61
Fixes: use-of-uninitialized-value
Fixes: 42537627/clusterfuzz-testcase-minimized-fuzzer_protocol_memory-5939605805793280
Found-by: ossfuzz
Reported-by: Kacper Michajlow
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2 months ago
Michael Niedermayer
beca13a42e
avformat/rpl: check channels
...
Fixes: 42537199/clusterfuzz-testcase-minimized-fuzzer_loadfile_direct-5447162658357248
Fixes: runtime error: signed integer overflow: -3330498059201358222 * 4 cannot be represented in type 'int64_t' (aka 'long')
Found-by: ossfuzz
Reported-by: Kacper Michajlow
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2 months ago
compn
b16102ab1c
doc/infra: add more information and accounts
2 months ago
James Almer
2b1bf3e228
fate/pixfmt: reintroduce scale filter dependency for some tests
...
Removed by mistake in 271aea60a4
.
Signed-off-by: James Almer <jamrial@gmail.com>
2 months ago
James Almer
92b849df13
avformat/mov: reindent after previous commit
...
Signed-off-by: James Almer <jamrial@gmail.com>
2 months ago
James Almer
2e338152a2
avformat/mov: use an array of pointers for heif_item
...
Pointers to specific entries in the array are stored in other structs, so
in the scenario where heif_item was reallocated when parsing an iloc box after
and iinf one, the pointers may end up referencing freed memory.
Fixes use-after-free with such samples.
Signed-off-by: James Almer <jamrial@gmail.com>
2 months ago
vectronic
7f51cf75c6
avformat/hls: improve comment
...
Signed-off-by: vectronic <hello.vectronic@gmail.com>
2 months ago
vectronic
380a518c43
avformat/mov: if pos has been reset, clear fragments and indexes and search for next root
...
fixes https://trac.ffmpeg.org/ticket/7359
Signed-off-by: vectronic <hello.vectronic@gmail.com>
2 months ago
Peter Ross
2f34b159b4
avcodec/eatgq: decode motion vector macroblocks
...
Signed-off-by: Peter Ross <pross@xvid.org>
2 months ago
James Almer
10c02deccb
avfilter/vf_zscale: extend the configuration log message with color space info
...
And print it in DEBUG level, not TRACE, as it's useful information.
Signed-off-by: James Almer <jamrial@gmail.com>
2 months ago
James Almer
5c8268ac56
avfilter/vf_zscale: remove unecessary argument from realign_frame
...
Possible since the previous commit.
Signed-off-by: James Almer <jamrial@gmail.com>
2 months ago
James Almer
c8e5c684b3
avfilter/vf_zscale: align the frame buffers
...
Signed-off-by: James Almer <jamrial@gmail.com>
2 months ago
Pavel Koshevoy
00cf3df03f
lavfi/vf_zscale: fix call to av_pix_fmt_count_planes
...
realign_frame called av_pix_fmt_count_planes with incorrect parameter.
Signed-off-by: James Almer <jamrial@gmail.com>
2 months ago
Pavel Koshevoy
7b302f4db7
lavfi/vf_zscale: fix tmp buffer ptr alignment for zimg_filter_graph_process
...
Signed-off-by: James Almer <jamrial@gmail.com>
2 months ago
James Almer
f15fc27db5
avfilter/framepool: align the frame buffers
...
And not just the linesizes. Use the extra align bytes allocated for this purpose.
Signed-off-by: James Almer <jamrial@gmail.com>
2 months ago
Marth64
6d5a0998b6
doc/bitstream_filters: elaborate on h264_redundant_pps
...
Signed-off-by: Marth64 <marth64@proxyid.net>
2 months ago
Anton Khirnov
13129f1af4
lavc: deprecate the omx encoders
...
They have not been relevant for a long time, and support for this API is
also being dropped from other projects.
2 months ago
Anton Khirnov
9e68b26765
Document stream specifier syntax change from 46cbe4ab5c
...
Fixes #11248 .
2 months ago
Anton Khirnov
3e9b0f7c01
lavfi/vf_libplacebo: eliminate LibplaceboInput.link
...
Setting it was broken in 8160178dfc
, since
links are not yet set up during init. It is also redundant, as the
struct also stores the input index.
Reported-By: llyyr <llyyr.public@gmail.com>
2 months ago
Peter Ross
2bbbf36fe2
avcodec/rv60: set populate_ipred src parameter to const
2 months ago
Peter Ross
006718c475
avcodec/rv60: align calc_sel_qp with reference decoder
...
Fixes ticket #11290 .
2 months ago
Peter Ross
c8c6319ce1
avcodec/rv60: prevent decode_cu_r deadlock
...
Fixes ticket #11289 (deadlock).
2 months ago
Peter Ross
4d4d171afb
avcodec/rv60: prevent decode_cu_r segfault
...
Fixes ticket #11289 (crash).
2 months ago
Peter Ross
923f45430c
avcodec/rv60: check init_get_bits8 return value
...
Fixes CID 1634471
2 months ago
Peter Ross
d51a920556
avcodec/rv60: negative qp guard
...
Fixes CID 1634472
2 months ago
Osamu Watanabe
82467b635e
avcodec/jpeg2000: Improve FF_DWT97_INT to pass ISO/IEC 15444-4 conformance tests
...
Fixes https://trac.ffmpeg.org/ticket/10123
Signed-off-by: Pierre-Anthony Lemieux <pal@palemieux.com>
2 months ago
James Almer
3330b733d3
fate/pixfmt: disable dithering in the scale filter
...
Should fix fate failures across different systems.
Signed-off-by: James Almer <jamrial@gmail.com>
2 months ago
Tomas Härdin
733d891bdf
lavf/mxfenc: Use nb_components, not av_pix_fmt_count_planes()
...
Also check that pix_desc != NULL, thanks James Almer
This fixes https://trac.ffmpeg.org/ticket/11267
2 months ago
compn
f4ba5b083c
doc/git-howto: remove outdated line about gitolite
2 months ago
Marth64
11c703be31
avcodec/mpeg12dec: set FF_CODEC_PROPERTY_CLOSED_CAPTIONS in mpeg_set_cc_format()
...
When Closed Captions are discovered, this method is always invoked.
Therefore, use it to set the property instead of repeating the statement.
Signed-off-by: Marth64 <marth64@proxyid.net>
2 months ago
James Almer
2eb9c35010
x86/swscale: disable AVX2 yuv2nv12cX functions if accurate_rnd is requested
...
Signed-off-by: James Almer <jamrial@gmail.com>
2 months ago
Araz Iusubov
f63f164125
avcodec/amfenc: GOP size check
...
Fix for the error with an invalid GOP size parameter.
2 months ago
James Almer
4047b887fc
swscale/swscale_unscaled: add more unscaled planar RGB to planar RGB coverage
...
Signed-off-by: James Almer <jamrial@gmail.com>
2 months ago
James Almer
c5ebd56500
swscale/swscale_unscaled: add unscaled XV{36,48}LE <-> XV{36,48}BE
...
Signed-off-by: James Almer <jamrial@gmail.com>
2 months ago
James Almer
271aea60a4
fate/pixfmts: extend the high bit depth test
...
Also test 8bit formats, and try bitdepth conversion paths.
Signed-off-by: James Almer <jamrial@gmail.com>
2 months ago
James Almer
c8438546ff
avfilter/vsrc_testsrc: add support for RGB48/RGBA64
...
Signed-off-by: James Almer <jamrial@gmail.com>
2 months ago
James Almer
e7382b4d01
swscale/swscale_unscaled: add unscaled x2rgb10le to packed RGB
...
Signed-off-by: James Almer <jamrial@gmail.com>
2 months ago
James Almer
ae8ef645ec
swscale/swscale_unscaled: add unscaled x2rgb10le to planar RGB
...
Signed-off-by: James Almer <jamrial@gmail.com>
2 months ago
Cameron Gutman
8503c64aa8
avcodec/amfenc: add support for QueryOutput wait
...
Enable waiting in QueryOutput() based on driver support to reduce
unnecessary delays.
Fix for issue #10622
Co-authored-by: Araz Iusubov <Primeadvice@gmail.com>
2 months ago