diff options
author | Jochen Dolze <vdr@dolze.de> | 2016-09-25 10:33:52 +0200 |
---|---|---|
committer | Jochen Dolze <vdr@dolze.de> | 2016-09-25 10:33:52 +0200 |
commit | 3724a697940a512399c7a549e71274408344c7d5 (patch) | |
tree | 6a31d1d4d0e846e3dd22c89db7ae3a8acc62818a /command/decoder.cpp | |
parent | c3ca6bd8fc34f048499f8915c63c8eba710b89bd (diff) | |
download | vdr-plugin-markad-3724a697940a512399c7a549e71274408344c7d5.tar.gz vdr-plugin-markad-3724a697940a512399c7a549e71274408344c7d5.tar.bz2 |
Added patch from Bug #2374 - Thanks to Markus and koen
Added patch from Bug #2403 - Thanks to Markus
Removed EinsPlus logo, logo never disapears on this channel
Diffstat (limited to 'command/decoder.cpp')
-rw-r--r-- | command/decoder.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/command/decoder.cpp b/command/decoder.cpp index a75f08f..6400aa7 100644 --- a/command/decoder.cpp +++ b/command/decoder.cpp @@ -234,7 +234,9 @@ cMarkAdDecoder::cMarkAdDecoder(bool useH264, int Threads) video_context->codec_type=AVMEDIA_TYPE_UNKNOWN; video_context->codec_id=AV_CODEC_ID_NONE; video_context->codec_tag=0; +#if (LIBAVCODEC_VERSION_MAJOR < 57) memset(video_context->codec_name,0,sizeof(video_context->codec_name)); +#endif #if LIBAVCODEC_VERSION_INT >= ((53<<16)+(5<<8)+0) video_context->thread_count=threadcount; ret=avcodec_open2(video_context, video_codec, NULL); @@ -282,7 +284,12 @@ cMarkAdDecoder::cMarkAdDecoder(bool useH264, int Threads) } #endif +#if ((LIBAVCODEC_VERSION_MICRO > 100) && (LIBAVCODEC_VERSION_INT < ((55<<16)+(45<<8)+101))) || \ + ((LIBAVCODEC_VERSION_MICRO <= 100) && (LIBAVCODEC_VERSION_INT < ((55<<16)+(28<<8)+1))) video_frame = avcodec_alloc_frame(); +#else + video_frame = av_frame_alloc(); +#endif if (!video_frame) { esyslog("could not allocate frame"); |