Skip to content

Commit

Permalink
Remove usage of deprecated avfiltergraph.h header
Browse files Browse the repository at this point in the history
avfiltergraph.h was replaced by avfilter.h in libavfilter version
3.8.0  so only include it when the used libavfilter version
is older than 3.8.0
  • Loading branch information
0xFelix committed Dec 12, 2017
1 parent 507e6d1 commit 1633f29
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/QtAV/private/AVCompat.h
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 59,7 @@ extern "C"
#include <libavutil/parseutils.h>
#include <libavutil/pixdesc.h>
#include <libavutil/avstring.h>
#include <libavfilter/version.h>

#if !FFMPEG_MODULE_CHECK(LIBAVUTIL, 51, 73, 101)
#include <libavutil/channel_layout.h>
Expand All @@ -79,8 80,11 @@ extern "C"
#endif //QTAV_HAVE(AVRESAMPLE)

#if QTAV_HAVE(AVFILTER)
#if LIBAVFILTER_VERSION_INT < AV_VERSION_INT(3,8,0)
#include <libavfilter/avfiltergraph.h> /*code is here for old version*/
#else
#include <libavfilter/avfilter.h>
#endif
#include <libavfilter/buffersink.h>
#include <libavfilter/buffersrc.h>
#endif //QTAV_HAVE(AVFILTER)
Expand Down

0 comments on commit 1633f29

Please sign in to comment.