diff options
Diffstat (limited to 'osdpip.c')
-rw-r--r-- | osdpip.c | 20 |
1 files changed, 16 insertions, 4 deletions
@@ -1,18 +1,25 @@ /* - * osdpip.c: A plugin for the Video Disk Recorder + * OSD Picture in Picture plugin for the Video Disk Recorder * * See the README file for copyright information and how to reach the author. - * - * $Id$ */ +extern "C" +{ +#ifdef HAVE_FFMPEG_STATIC +# include <avcodec.h> +#else +# include <ffmpeg/avcodec.h> +#endif +} + #include "osd.h" #include "config.h" #include "i18n.h" #include <vdr/plugin.h> -static const char *VERSION = "0.0.2"; +static const char *VERSION = "0.0.3"; static const char *DESCRIPTION = "OSD Picture-in-Picture"; static const char *MAINMENUENTRY = "Picture-in-Picture"; @@ -50,6 +57,11 @@ bool cPluginOsdpip::ProcessArgs(int argc, char *argv[]) { } bool cPluginOsdpip::Initialize(void) { + // must be called before using avcodec lib + avcodec_init(); + // register all the codecs (you can also register only the codec + // you wish to have smaller code) + avcodec_register_all(); return true; } |