Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 306409 Details for
Bug 406215
media-tv/xbmc-11.0 with media-video/libav-0.6.5+ fails to build
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
libav patch
0002-Add-support-for-libav-api-as-it-sligthly-differ.patch (text/plain), 3.52 KB, created by
Tomáš Chvátal (RETIRED)
on 2012-03-23 11:29:32 UTC
(
hide
)
Description:
libav patch
Filename:
MIME Type:
Creator:
Tomáš Chvátal (RETIRED)
Created:
2012-03-23 11:29:32 UTC
Size:
3.52 KB
patch
obsolete
>From c74abc298e2075f431d9fa700fcfc5e1bbbddf22 Mon Sep 17 00:00:00 2001 >From: Tomas Chvatal <tchvatal@suse.cz> >Date: Fri, 23 Mar 2012 12:08:53 +0100 >Subject: [PATCH 2/2] Add support for libav api as it sligthly differ. > >The libav use micro version as 0 >The ffmpeg use the micro version as 100+ > >Simply check if the variable is defined then it is not libav. >--- > lib/DllAvFilter.h | 10 +++++++++- > .../DVDCodecs/Video/DVDVideoCodecFFmpeg.cpp | 4 ++++ > 2 files changed, 13 insertions(+), 1 deletions(-) > >diff --git a/lib/DllAvFilter.h b/lib/DllAvFilter.h >index 302e35c..827746e 100644 >--- a/lib/DllAvFilter.h >+++ b/lib/DllAvFilter.h >@@ -48,7 +48,7 @@ extern "C" { > #endif > /* for av_vsrc_buffer_add_frame */ > #if LIBAVFILTER_VERSION_INT >= AV_VERSION_INT(2,8,0) >- #include <libavfilter/avcodec.h> >+ #include <libavfilter/vsrc_buffer.h> > #elif LIBAVFILTER_VERSION_INT >= AV_VERSION_INT(2,7,0) > int av_vsrc_buffer_add_frame(AVFilterContext *buffer_filter, > AVFrame *frame); >@@ -83,7 +83,11 @@ public: > virtual int avfilter_poll_frame(AVFilterLink *link)=0; > virtual int avfilter_request_frame(AVFilterLink *link)=0; > #if LIBAVFILTER_VERSION_INT >= AV_VERSION_INT(2,13,0) >+#if LIBAVFILTER_VERSION_MICRO > virtual int av_vsrc_buffer_add_frame(AVFilterContext *buffer_filter, AVFrame *frame, int flags)=0; >+#else >+ virtual int av_vsrc_buffer_add_frame(AVFilterContext *buffer_filter, AVFrame *frame, int64_t pts, AVRational pixel_aspect)=0; >+#endif > #elif LIBAVFILTER_VERSION_INT >= AV_VERSION_INT(2,7,0) > virtual int av_vsrc_buffer_add_frame(AVFilterContext *buffer_filter, AVFrame *frame)=0; > #elif LIBAVCODEC_VERSION_INT >= AV_VERSION_INT(53,3,0) >@@ -172,7 +176,11 @@ public: > virtual int avfilter_poll_frame(AVFilterLink *link) { return ::avfilter_poll_frame(link); } > virtual int avfilter_request_frame(AVFilterLink *link) { return ::avfilter_request_frame(link); } > #if LIBAVFILTER_VERSION_INT >= AV_VERSION_INT(2,13,0) >+#if LIBAVFILTER_VERSION_MICRO > virtual int av_vsrc_buffer_add_frame(AVFilterContext *buffer_filter, AVFrame *frame, int flags) { return ::av_vsrc_buffer_add_frame(buffer_filter, frame, flags); } >+#else >+ virtual int av_vsrc_buffer_add_frame(AVFilterContext *buffer_filter, AVFrame *frame, int64_t pts, AVRational pixel_aspect) { return ::av_vsrc_buffer_add_frame(buffer_filter, frame, pts, pixel_aspect); } >+#endif > #elif LIBAVFILTER_VERSION_INT >= AV_VERSION_INT(2,7,0) > virtual int av_vsrc_buffer_add_frame(AVFilterContext *buffer_filter, AVFrame *frame) { return ::av_vsrc_buffer_add_frame(buffer_filter, frame); } > #elif LIBAVCODEC_VERSION_INT >= AV_VERSION_INT(53,3,0) >diff --git a/xbmc/cores/dvdplayer/DVDCodecs/Video/DVDVideoCodecFFmpeg.cpp b/xbmc/cores/dvdplayer/DVDCodecs/Video/DVDVideoCodecFFmpeg.cpp >index b4e1451..4e5eedf 100644 >--- a/xbmc/cores/dvdplayer/DVDCodecs/Video/DVDVideoCodecFFmpeg.cpp >+++ b/xbmc/cores/dvdplayer/DVDCodecs/Video/DVDVideoCodecFFmpeg.cpp >@@ -814,7 +814,11 @@ int CDVDVideoCodecFFmpeg::FilterProcess(AVFrame* frame) > if (frame) > { > #if LIBAVFILTER_VERSION_INT >= AV_VERSION_INT(2,13,0) >+#if LIBAVFILTER_VERSION_MICRO > result = m_dllAvFilter.av_vsrc_buffer_add_frame(m_pFilterIn, frame, 0); >+#else >+ result = m_dllAvFilter.av_vsrc_buffer_add_frame(m_pFilterIn, frame, frame->pts, m_pCodecContext->sample_aspect_ratio); >+#endif > #elif LIBAVFILTER_VERSION_INT >= AV_VERSION_INT(2,7,0) > result = m_dllAvFilter.av_vsrc_buffer_add_frame(m_pFilterIn, frame); > #elif LIBAVCODEC_VERSION_INT >= AV_VERSION_INT(53,3,0) >-- >1.7.3.4 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 406215
:
303635
|
305995
|
305997
|
306407
| 306409 |
307173