Skip to content

Commit

Permalink
fix build error if avfilter is disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
wang-bin committed Apr 23, 2015
1 parent 9e092b0 commit 251dd3e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/filter/LibAVFilter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -241,8 241,8 @@ bool LibAVFilter::pushAudioFrame(Frame *frame, bool changed)

void* LibAVFilter::pullFrameHolder()
{
AVFrameHolder *holder = NULL;
#if QTAV_HAVE(AVFILTER)
AVFrameHolder *holder = NULL;
holder = new AVFrameHolder();
#if QTAV_HAVE_av_buffersink_get_frame
int ret = av_buffersink_get_frame(priv->out_filter_ctx, holder->frame());
Expand All @@ -257,8 257,9 @@ void* LibAVFilter::pullFrameHolder()
#if !QTAV_HAVE_av_buffersink_get_frame
holder->copyBufferToFrame();
#endif
#endif //QTAV_HAVE(AVFILTER)
return holder;
#endif //QTAV_HAVE(AVFILTER)
return 0;
}

QStringList LibAVFilter::registeredFilters(int type)
Expand Down

0 comments on commit 251dd3e

Please sign in to comment.