Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 329592 Details for
Bug 443006
media-tv/xbmc-11.0-r1 with media-video/libav-0.8.4 - .../work/xbmc-11.0/lib/DllAvUtil.h:145:75: error: ‘::av_get_default_channel_layout’ has not been declared
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
xbmc-11.0-libav-r2.patch
xbmc-0.11-libav-r2.patch (text/plain), 4.06 KB, created by
Tomáš Chvátal (RETIRED)
on 2012-11-15 09:17:05 UTC
(
hide
)
Description:
xbmc-11.0-libav-r2.patch
Filename:
MIME Type:
Creator:
Tomáš Chvátal (RETIRED)
Created:
2012-11-15 09:17:05 UTC
Size:
4.06 KB
patch
obsolete
>diff -urN xbmc-11.0.old/lib/DllAvFilter.h xbmc-11.0/lib/DllAvFilter.h >--- xbmc-11.0.old/lib/DllAvFilter.h 2012-11-14 18:24:21.122362534 +0100 >+++ xbmc-11.0/lib/DllAvFilter.h 2012-11-14 18:45:21.249334727 +0100 >@@ -26,7 +26,9 @@ > #include "DynamicDll.h" > #include "DllAvCodec.h" > #include "DllAvFormat.h" >+#if LIBAVFILTER_VERSION_MICRO >= 50 // not Libav > #include "DllSwResample.h" >+#endif > #include "utils/log.h" > > extern "C" { >@@ -45,7 +47,11 @@ > #if (defined HAVE_LIBAVFILTER_AVFILTER_H) > #include <libavfilter/avfiltergraph.h> > #include <libavfilter/buffersink.h> >- #include <libavfilter/avcodec.h> >+ #if LIBAVFILTER_VERSION_MICRO < 50 // Libav >+ #include <libavfilter/vsrc_buffer.h> >+ #else >+ #include <libavfilter/avcodec.h> >+ #endif > #elif (defined HAVE_FFMPEG_AVFILTER_H) > #include <ffmpeg/avfiltergraph.h> > #include <ffmpeg/buffersink.h> >@@ -75,7 +81,11 @@ > virtual int avfilter_graph_parse(AVFilterGraph *graph, const char *filters, AVFilterInOut **inputs, AVFilterInOut **outputs, void *log_ctx)=0; > virtual int avfilter_graph_config(AVFilterGraph *graphctx, void *log_ctx)=0; > #if LIBAVFILTER_VERSION_INT < AV_VERSION_INT(3,0,0) >+#if LIBAVFILTER_VERSION_MICRO < 50 // Libav >+ virtual int av_vsrc_buffer_add_frame(AVFilterContext *buffer_filter, AVFrame *frame, int64_t pts, AVRational pixel_aspect)=0; >+#else > virtual int av_vsrc_buffer_add_frame(AVFilterContext *buffer_filter, AVFrame *frame, int flags)=0; >+#endif > #else > virtual int av_buffersrc_add_frame(AVFilterContext *buffer_filter, AVFrame *frame, int flags)=0; > #endif >@@ -135,7 +145,11 @@ > return ::avfilter_graph_config(graphctx, log_ctx); > } > #if LIBAVFILTER_VERSION_INT < AV_VERSION_INT(3,0,0) >+#if LIBAVFILTER_VERSION_MICRO < 50 // Libav >+ 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); } >+#else > virtual int av_vsrc_buffer_add_frame(AVFilterContext *buffer_filter, AVFrame *frame, int flags) { return ::av_vsrc_buffer_add_frame(buffer_filter, frame, flags); } >+#endif > #else > virtual int av_buffersrc_add_frame(AVFilterContext *buffer_filter, AVFrame* frame, int flags) { return ::av_buffersrc_add_frame(buffer_filter, frame, flags); } > #endif >@@ -207,7 +221,9 @@ > > /* dependencies of libavfilter */ > DllAvUtil m_dllAvUtil; >+#if LIBAVFILTER_VERSION_MICRO >= 50 // not Libav > DllSwResample m_dllSwResample; >+#endif > DllAvFormat m_dllAvFormat; > > public: >@@ -255,8 +271,10 @@ > { > if (!m_dllAvUtil.Load()) > return false; >+#if LIBAVFILTER_VERSION_MICRO >= 50 // not Libav > if (!m_dllSwResample.Load()) > return false; >+#endif > if (!m_dllAvFormat.Load()) > return false; > return DllDynamic::Load(); >diff -urN xbmc-11.0.old/lib/DllAvUtil.h xbmc-11.0/lib/DllAvUtil.h >--- xbmc-11.0.old/lib/DllAvUtil.h 2012-11-14 18:24:21.122362534 +0100 >+++ xbmc-11.0/lib/DllAvUtil.h 2012-11-14 18:24:53.788361813 +0100 >@@ -38,6 +38,8 @@ > #include <libavutil/avutil.h> > #include <libavutil/crc.h> > #include <libavutil/fifo.h> >+ // for channel_layout >+ #include <libavutil/audioconvert.h> > // for LIBAVCODEC_VERSION_INT: > #include <libavcodec/avcodec.h> > #elif (defined HAVE_FFMPEG_AVUTIL_H) >diff -urN xbmc-11.0.old/xbmc/cores/dvdplayer/DVDCodecs/Video/DVDVideoCodecFFmpeg.cpp xbmc-11.0/xbmc/cores/dvdplayer/DVDCodecs/Video/DVDVideoCodecFFmpeg.cpp >--- xbmc-11.0.old/xbmc/cores/dvdplayer/DVDCodecs/Video/DVDVideoCodecFFmpeg.cpp 2012-11-14 18:24:21.421362528 +0100 >+++ xbmc-11.0/xbmc/cores/dvdplayer/DVDCodecs/Video/DVDVideoCodecFFmpeg.cpp 2012-11-14 18:24:53.788361813 +0100 >@@ -833,7 +833,11 @@ > if (frame) > { > #if LIBAVFILTER_VERSION_INT < AV_VERSION_INT(3,0,0) >+#if LIBAVFILTER_VERSION_MICRO < 50 // Libav >+ result = m_dllAvFilter.av_vsrc_buffer_add_frame(m_pFilterIn, frame, frame->pts, m_pCodecContext->sample_aspect_ratio); >+#else > result = m_dllAvFilter.av_vsrc_buffer_add_frame(m_pFilterIn, frame, 0); >+#endif > #else > result = m_dllAvFilter.av_buffersrc_add_frame(m_pFilterIn, frame, 0); > #endif
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 443006
:
329484
| 329592