patch-lib_DllAvFilter_h 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. --- xbmc-12.2.orig/lib/DllAvFilter.h 2013-05-03 07:57:40.000000000 +0200
  2. +++ xbmc-12.2/lib/DllAvFilter.h 2013-08-01 10:49:46.000000000 +0200
  3. @@ -45,6 +45,7 @@ extern "C" {
  4. #if (defined HAVE_LIBAVFILTER_AVFILTER_H)
  5. #include <libavfilter/avfiltergraph.h>
  6. #include <libavfilter/buffersink.h>
  7. + #include <libavfilter/buffersrc.h>
  8. #include <libavfilter/avcodec.h>
  9. #elif (defined HAVE_FFMPEG_AVFILTER_H)
  10. #include <ffmpeg/avfiltergraph.h>
  11. @@ -77,7 +78,7 @@ public:
  12. #if LIBAVFILTER_VERSION_INT < AV_VERSION_INT(3,0,0)
  13. virtual int av_vsrc_buffer_add_frame(AVFilterContext *buffer_filter, AVFrame *frame, int flags)=0;
  14. #else
  15. - virtual int av_buffersrc_add_frame(AVFilterContext *buffer_filter, AVFrame *frame, int flags)=0;
  16. + virtual int av_buffersrc_add_frame_flags(AVFilterContext *buffer_filter, AVFrame *frame, int flags)=0;
  17. #endif
  18. virtual void avfilter_unref_buffer(AVFilterBufferRef *ref)=0;
  19. virtual int avfilter_link(AVFilterContext *src, unsigned srcpad, AVFilterContext *dst, unsigned dstpad)=0;
  20. @@ -137,7 +138,7 @@ public:
  21. #if LIBAVFILTER_VERSION_INT < AV_VERSION_INT(3,0,0)
  22. virtual int av_vsrc_buffer_add_frame(AVFilterContext *buffer_filter, AVFrame *frame, int flags) { return ::av_vsrc_buffer_add_frame(buffer_filter, frame, flags); }
  23. #else
  24. - virtual int av_buffersrc_add_frame(AVFilterContext *buffer_filter, AVFrame* frame, int flags) { return ::av_buffersrc_add_frame(buffer_filter, frame, flags); }
  25. + virtual int av_buffersrc_add_frame_flags(AVFilterContext *buffer_filter, AVFrame* frame, int flags) { return ::av_buffersrc_add_frame_flags(buffer_filter, frame, flags); }
  26. #endif
  27. virtual void avfilter_unref_buffer(AVFilterBufferRef *ref) { ::avfilter_unref_buffer(ref); }
  28. virtual int avfilter_link(AVFilterContext *src, unsigned srcpad, AVFilterContext *dst, unsigned dstpad) { return ::avfilter_link(src, srcpad, dst, dstpad); }
  29. @@ -175,7 +176,7 @@ class DllAvFilter : public DllDynamic, D
  30. #if LIBAVFILTER_VERSION_INT < AV_VERSION_INT(3,0,0)
  31. DEFINE_METHOD3(int, av_vsrc_buffer_add_frame, (AVFilterContext *p1, AVFrame *p2, int p3))
  32. #else
  33. - DEFINE_METHOD3(int, av_buffersrc_add_frame, (AVFilterContext *p1, AVFrame *p2, int p3))
  34. + DEFINE_METHOD3(int, av_buffersrc_add_frame_flag, (AVFilterContext *p1, AVFrame *p2, int p3))
  35. #endif
  36. DEFINE_METHOD1(void, avfilter_unref_buffer, (AVFilterBufferRef *p1))
  37. DEFINE_METHOD4(int, avfilter_link, (AVFilterContext *p1, unsigned p2, AVFilterContext *p3, unsigned p4))
  38. @@ -198,7 +199,7 @@ class DllAvFilter : public DllDynamic, D
  39. #if LIBAVFILTER_VERSION_INT < AV_VERSION_INT(3,0,0)
  40. RESOLVE_METHOD(av_vsrc_buffer_add_frame)
  41. #else
  42. - RESOLVE_METHOD(av_buffersrc_add_frame)
  43. + RESOLVE_METHOD(av_buffersrc_add_frame_flag)
  44. #endif
  45. RESOLVE_METHOD(avfilter_unref_buffer)
  46. RESOLVE_METHOD(avfilter_link)