Skip to content
Snippets Groups Projects
Commit c04704aa authored by Philippe Gorley's avatar Philippe Gorley Committed by Adrien Béraud
Browse files

filter: remove push flag

Lets filters output frames when ready and requested, else there may be a
null frame dereference deep in the filtering pipeline.

Change-Id: I4f7386837d06d003041a2c73d33811f3cb78c3f0
parent 03780c7b
Branches
Tags
No related merge requests found
......@@ -174,7 +174,7 @@ MediaFilter::feedInput(AVFrame* frame, const std::string& inputName)
return fail("Failed to reinitialize filter with new input parameters", ret);
}
int flags = AV_BUFFERSRC_FLAG_PUSH | AV_BUFFERSRC_FLAG_KEEP_REF;
int flags = AV_BUFFERSRC_FLAG_KEEP_REF;
if ((ret = av_buffersrc_add_frame_flags(inputs_[i], frame, flags)) < 0)
return fail("Could not pass frame to filters", ret);
else
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment