mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-02-04 06:08:26 +02:00
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.
This commit is contained in:
parent
8c7934f73a
commit
9d0f361f7f
@ -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");
|
||||
|
Loading…
x
Reference in New Issue
Block a user