diff options
author | Niklas Haas <git@haasn.dev> | 2023-10-28 14:45:18 +0200 |
---|---|---|
committer | Niklas Haas <git@haasn.dev> | 2023-12-31 13:35:17 -0800 |
commit | 9d0f361f7fb84392d8ea032e954f7323c48404b1 (patch) | |
tree | ce7e06ea391cdad79f3cc79263cdfb0ceb0d9694 /fftools/ffmpeg_filter.c | |
parent | 8c7934f73ab6c568acaa47c821a6833f9145fdbb (diff) | |
download | ffmpeg-9d0f361f7fb84392d8ea032e954f7323c48404b1.tar.gz |
fftools/ffmpeg_filter: don't clear buffersrc params
This memset is bogus, it accomplishes nothing in the best case and
regresses future additions to AVBufferSrcParameters in the worst case.
Diffstat (limited to 'fftools/ffmpeg_filter.c')
-rw-r--r-- | fftools/ffmpeg_filter.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/fftools/ffmpeg_filter.c b/fftools/ffmpeg_filter.c index c1c3014453..3383f5a40a 100644 --- a/fftools/ffmpeg_filter.c +++ b/fftools/ffmpeg_filter.c @@ -1465,11 +1465,8 @@ static int configure_input_video_filter(FilterGraph *fg, AVFilterGraph *graph, int ret, pad_idx = 0; int64_t tsoffset = 0; AVBufferSrcParameters *par = av_buffersrc_parameters_alloc(); - if (!par) return AVERROR(ENOMEM); - memset(par, 0, sizeof(*par)); - par->format = AV_PIX_FMT_NONE; if (ist->dec_ctx->codec_type == AVMEDIA_TYPE_AUDIO) { av_log(fg, AV_LOG_ERROR, "Cannot connect video filter to audio input\n"); |