[Kdenlive-devel] [PATCH] renderer avformat.h include directory
Marco Gittler
g.marco at freenet.de
Fri Apr 25 12:40:21 UTC 2008
i think this could be a problem
not all have the latest ffmpeg version
so i think we should
#include <avformat.h>
and add to the CXXFLAGS -I /usr/include/libavformat or -I/usr/include/ffmpeg
with cmake, when we found the right postion.
i think latest ffmpeg has pkgconfig for this, but what about the older
version ?
regards marco
Am Freitag, 25. April 2008 schrieb Albert ARIBAUD:
> Hi,
>
> Renderer includes <ffmeg/avformat.h>, but ffmpeg (latest svn) actually
> installs <libavformat/avformat.h> so kdenlive won't compile without this
> fix. Patch below for KDE3 and KDE4 versions.
>
> For KDE3 version:
>
> ------------------------------------------ Patch file begin
> Index: kdenlive/krender.cpp
> ===================================================================
> --- kdenlive/krender.cpp (révision 2166)
> +++ kdenlive/krender.cpp (copie de travail)
> @@ -25,7 +25,7 @@
> // ffmpeg Header files
>
> extern "C" {
> -#include <ffmpeg/avformat.h>
> +#include <libavformat/avformat.h>
> }
>
> #include <iostream>
> ------------------------------------------ Patch file end
>
> For KDE4 version:
>
> ------------------------------------------ Patch file begin
> Index: src/renderer.cpp
> ===================================================================
> --- src/renderer.cpp (révision 2166)
> +++ src/renderer.cpp (copie de travail)
> @@ -41,7 +41,7 @@
> #include "renderer.h"
> #include "kdenlivesettings.h"
> #include "kthumb.h"
> -//#include <ffmpeg/avformat.h>
> +//#include <libavformat/avformat.h>
> #include <mlt++/Mlt.h>
>
> static void consumer_frame_show(mlt_consumer, Render * self, mlt_frame
> frame_ptr) {
> ------------------------------------------ Patch file end
>
> Cheers,
--
Was ist der unterschied zwischen Bill Gates und Gott?
Gott weiß daß er nicht Bill Gates ist.
More information about the Kdenlive
mailing list