Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitc194f63

Browse files
committed
FilterGraph: keep reference of the filters input frame
1 parent19c582f commitc194f63

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
@@ -275,7 +275,7 @@ void FilterGraph::process(const std::vector<IFrame*>& inputs, IFrame& output)
275275
{
276276
// Retrieve frame from buffer or directly from input
277277
IFrame* inputFrame = (bypassBuffers)? inputs.at(index) : _inputAudioFrameBuffers.at(index).getFrameSampleNb(minInputFrameSamplesNb);
278-
constint ret =av_buffersrc_add_frame_flags(_filters.at(index)->getAVFilterContext(), &inputFrame->getAVFrame(), AV_BUFFERSRC_FLAG_PUSH);
278+
constint ret =av_buffersrc_add_frame_flags(_filters.at(index)->getAVFilterContext(), &inputFrame->getAVFrame(), AV_BUFFERSRC_FLAG_PUSH & AV_BUFFERSRC_FLAG_KEEP_REF);
279279

280280
if(ret <0)
281281
{

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp