Skip to content

Commit 2dc9d24

Browse files
author
Valentin NOEL
committed
FilterGraph: push input frames into the filter buffer
Let the filter managing the output frame size, using its internal frame buffer queue.
1 parent 93961f4 commit 2dc9d24

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/AvTranscoder/filter/FilterGraph.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ void FilterGraph::process(const std::vector<IFrame*>& inputs, IFrame& output)
4444
// setup input frames
4545
for(size_t index = 0; index < inputs.size(); ++index)
4646
{
47-
const int ret = av_buffersrc_write_frame(_filters.at(index)->getAVFilterContext(), &inputs.at(index)->getAVFrame());
47+
const int ret = av_buffersrc_add_frame_flags(_filters.at(index)->getAVFilterContext(), &inputs.at(index)->getAVFrame(), AV_BUFFERSRC_FLAG_PUSH);
4848
if(ret < 0)
4949
{
5050
throw std::runtime_error("Error when adding a frame to the source buffer used to start to process filters: " +

0 commit comments

Comments
 (0)