mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-06 15:49:50 +08:00
avfilter/formats: Don't set samplerate or channel count on video links
This currently happens by accident in a few filters that use ff_set_common_(samplerates|channel_layouts) like afir (if the response option is set) or agraphmonitor (due to the default code in avfiltergraph.c). So change those functions to make sure it does no longer happen. Reviewed-by: Nicolas George <george@nsup.org> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
@ -129,9 +129,9 @@ av_warn_unused_result
|
||||
AVFilterChannelLayouts *ff_make_format64_list(const int64_t *fmts);
|
||||
|
||||
/**
|
||||
* A helper for query_formats() which sets all links to the same list of channel
|
||||
* layouts/sample rates. If there are no links hooked to this filter, the list
|
||||
* is freed.
|
||||
* Helpers for query_formats() which set all free audio links to the same list
|
||||
* of channel layouts/sample rates. If there are no links hooked to this list,
|
||||
* the list is freed.
|
||||
*/
|
||||
av_warn_unused_result
|
||||
int ff_set_common_channel_layouts(AVFilterContext *ctx,
|
||||
|
Reference in New Issue
Block a user