Anton Khirnov
30a3fee24f
fftools/ffmpeg: rework applying input -r
...
Do not use a separate counter for CFR timestamps forced with -r used as
an input option. Set durations properly and let estimation code do the
rest.
2 years ago
Anton Khirnov
1132507327
fftools/ffmpeg_filter: make sure pkt_duration matches duration
...
Otherwise the two values might get desynchronized and lavfi can prefer
the wrong one.
2 years ago
Anton Khirnov
14b9946967
fftools/ffmpeg_filter: convert input frame timestamps
...
Decoder timebase does not always have to match filter timebase.
2 years ago
Anton Khirnov
7b41785eb6
fftools/ffmpeg: replace stream timebase with decoded frame one
...
They are the same for now, but this may change in the future.
2 years ago
Anton Khirnov
1372e81aaa
fftools/ffmpeg: drop a useless local variable
...
Store decoded frame timestamp directly in AVFrame.pts, there is no
advantage to using a separate local variable for it.
2 years ago
Anton Khirnov
94a9647195
fftools/ffmpeg: shorten a variable name
...
There is only one frame used in decode_video() -- the one output by the
decoder. So there is no point in explicitly calling it the _decoded_
frame.
2 years ago
Paul B Mahol
c37cf59c5b
avfilter/vf_xfade: send EOF to first input early
...
No point to consume 1st input frames any more after crossfade is over.
2 years ago
Niklas Haas
877ccaf776
lavfi/vf_libplacebo: don't intrude on pl_ namespace
...
No reason to use this prefix here.
2 years ago
Niklas Haas
21715ecff1
lavfi/vf_libplacebo: update peak detection options
...
Upstream peak detection lost one option and gained one option. Update
code and documentation as required.
2 years ago
Niklas Haas
643cf2ec46
lavfi/vf_libplacebo: update for new tone mapping API
...
This algorithm has once again been refactored, this time leading to a
dropping of the old `tone_mapping_mode` field, to be replaced by a
single tunable hybrid mode with configurable strength.
We can approximately map the old modes onto the new API for backwards
compatibility. Replace deprecated enums by their integer equivalents to
safely preserve this API until the next bump.
2 years ago
Niklas Haas
d637f20f05
lavfi/vf_libplacebo: switch to new gamut mapping API
...
Upstream deprecated the old ad-hoc, enum/intent-based gamut mapping API
and added a new API based on colorimetrically accurate gamut mapping
functions.
The relevant change for us is the addition of several new modes, as well
as deprecation of the old options. Update the documentation accordingly.
2 years ago
Niklas Haas
f66280182a
lavfi/vf_libplacebo: add RGB colorspace sanity
...
Explicitly forbid using a non-RGB colorspace with RGB pixel format or
vice versa. This mirrors identical logic from vf_scale.
2 years ago
Niklas Haas
c00fd02558
lavfi/libplacebo: properly handle EOF
...
The current code relied on pl_queue eventually returning EOF back to the
caller, which didn't work in all situations (e.g. single frame input).
Also, the current code assumed that ff_inlink_acknowledge_status only
fired once, which was patently not true, as the above edge cases
demonstrated.
Solve both issues by keeping track of the acknowledged link status and
forwarding it (instead of trying to probe the pl_queue again) in the
event that we run out of queued input frames, as well as (in CFR mode)
when we pass the indicated status PTS.
2 years ago
Paul B Mahol
7428f1e8f2
avfilter/vf_xfade: fix fadegrays for gbrp* formats
...
The array elements were left uninitialized.
2 years ago
Paul B Mahol
6284afec07
avfilter/vf_xfade: avoid some not needed dereferencing in inner loops
2 years ago
Paul B Mahol
0709680fc4
avfilter/vf_xfade: add horizontal and vertical wind transforms
2 years ago
Michael Niedermayer
43e5e2e423
avcodec/bonk: Avoid undefined integer overflow in predictor_calc_error()
...
Fixes: signed integer overflow: -159584 * 5105950 cannot be represented in type 'int'
Fixes: 55165/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_BONK_fuzzer-5796023719297024
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2 years ago
Michael Niedermayer
a76efafdb9
avformat/wavdec: Check that smv block fits in available space
...
Fixes: OOM
Fixes: 56271/clusterfuzz-testcase-minimized-ffmpeg_dem_WAV_fuzzer-5290810045497344
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2 years ago
Michael Niedermayer
d09f50c0f5
avformat/hls: remove non standard hls extension
...
Suggested-by: Kacper Michajlow <kasper93@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2 years ago
Michael Niedermayer
5b630743c6
avformat/hls: Better message from hls_probe()
...
Found-by: Kacper Michajlow <kasper93@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2 years ago
Michael Niedermayer
a0cb5722fd
avformat/hls: Check mime_ok first
...
This should be a few nano seconds faster (not measureable)
But Collectively the whole humankind watching hls will safe a minute
Found-by: Leo Izen
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2 years ago
Michael Niedermayer
19a74bc794
avformat/format: Remove redundant FFMIN() in ff_match_url_ext()
...
Found-by: Leo Izen
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2 years ago
Paul B Mahol
e684967e74
avfilter/f_graphmonitor: output one frame more after eof
...
To easily debug eof issues.
2 years ago
Paul B Mahol
a6068c8700
avformat/fits*: format does not store timestamps
2 years ago
Paul B Mahol
02823703f4
avformat/fitsdec: stop creating pts, instead set packet duration
2 years ago
Paul B Mahol
d912ff19c5
avcodec/fitsenc: mark output packets as keyframes
2 years ago
Paul B Mahol
fd2ca3d4c5
avformat/fitsenc: reindent switch
2 years ago
Paul B Mahol
8a49341666
avformat/fitsdec: fix demuxer class category
2 years ago
Paul B Mahol
a28df1faa9
avformat/fitsdec: remove .raw_codec_id
...
This non-raw demuxer does not have parser.
2 years ago
Paul B Mahol
4d4aed2815
avcodec/fitsdec: fix decoder class category
2 years ago
Paul B Mahol
c4b3e882f8
avfilter/f_graphmonitor: make opacity runtime option
2 years ago
Paul B Mahol
08eb13c05c
avfilter/f_graphmonitor: add missing queue flag
2 years ago
Paul B Mahol
416c1e62f1
avfilter/f_graphmonitor: cache strlen() values
2 years ago
Paul B Mahol
f055345595
avfilter/f_graphmonitor: speed-up clear_image()
2 years ago
Kacper Michajłow
1aeefc4c06
lavfi/vf_libplacebo: allow linking to shared library with dllimport
...
Address of dll imported variables can't be used for constant
initialization in C language modes.
2 years ago
Paul B Mahol
65fe18040a
avfilter/f_graphmonitor: add flags option shortcuts
2 years ago
Paul B Mahol
b528e098a9
avfilter/f_graphmonitor: show also current timeline status of filter
2 years ago
Paul B Mahol
fcabfcbf6f
avcodec/wavpackenc: unbreak encoding 8bit pcm
...
Otherwise the reference decoder reports crc errors.
2 years ago
Paul B Mahol
ddc176d0ee
avcodec/elbg: fix integer overflows
...
Fixes #9977
2 years ago
Paul B Mahol
5fe6a0e5c7
avfilter/src_movie: switch to activate
2 years ago
Paul B Mahol
3546f70410
avfilter/src_movie: dr support
2 years ago
Paul B Mahol
d81b6cbd42
avcodec/gif_parser: fix possible wrong splitting of frames
...
And properly signal keyframes.
2 years ago
James Almer
b6066ceb8b
fate/checkasm: add h264chroma test
...
Signed-off-by: James Almer <jamrial@gmail.com>
2 years ago
Lynne
783270bfd1
checkasm: add h264chroma tests
...
Checks all variants of put_h264_chroma and avg_h264_chroma.
2 years ago
Lynne
a62a3930c2
swscale/ppc: remove hScale8To19_vsx
...
Fails checkasm on a Power9 system.
2 years ago
Rick Kern
247e977953
lavc/videotoolboxenc: warn when alpha quality not set
...
Added a warn log when alpha quality cannot be set, but continue encoding.
Signed-off-by: Rick Kern <kernrj@gmail.com>
2 years ago
Rick Kern
902c949d30
lavc/videotoolboxenc: better compat_keys docs
...
Added more specific docs about when to use compat_keys, and how to
add new constants.
Signed-off-by: Rick Kern <kernrj@gmail.com>
2 years ago
James Almer
efdc6e8200
avformat/matroskaenc: remove accidental variable shadowing
...
Should fix use of uninitialized value in a failure path.
Signed-off-by: James Almer <jamrial@gmail.com>
2 years ago
Paul B Mahol
8980c1313b
avcodec/ccaption_dec: simplify init function
2 years ago
Paul B Mahol
ff72256235
avformat/gif: use last frame duration
2 years ago