Commit c04704aa authored by Philippe Gorley's avatar Philippe Gorley Committed by Adrien Béraud

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
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment