aboutsummaryrefslogtreecommitdiff
path: root/multimedia/vdr-plugin-markad/files/patch-vdr-markad-0.1.4-libav9
blob: fca9cbb49e3587c9084ef5e508ec281ddfc13c8a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
diff -urN markad-0.1.4.old/command/decoder.cpp markad-0.1.4/command/decoder.cpp
--- markad-0.1.4.old/command/decoder.cpp	2013-06-17 21:52:44.333367552 +0200
+++ markad-0.1.4/command/decoder.cpp	2013-06-17 21:53:03.708366863 +0200
@@ -11,6 +11,7 @@
 #include <sys/types.h>
 #include <string.h>
 #include <cstdlib>
+#include <stdio.h>
 
 #include "decoder.h"
 
@@ -172,7 +173,7 @@
 
     if (video_codec)
     {
-        video_context = avcodec_alloc_context();
+        video_context = avcodec_alloc_context3(NULL);
         if (video_context)
         {
             if (video_codec->capabilities & CODEC_CAP_TRUNCATED)
@@ -321,7 +322,7 @@
     {
         avcodec_flush_buffers(video_context);
         AVCodecContext *dest;
-        dest=avcodec_alloc_context();
+        dest=avcodec_alloc_context3(NULL);
         if (dest)
         {
             if (avcodec_copy_context(dest,video_context)!=0) ret=false;
diff -urN markad-0.1.4.old/command/decoder.h markad-0.1.4/command/decoder.h
--- markad-0.1.4.old/command/decoder.h	2013-06-17 21:52:44.333367552 +0200
+++ markad-0.1.4/command/decoder.h	2013-06-17 21:53:03.708366863 +0200
@@ -18,6 +18,7 @@
 #include <avcodec.h>
 #else
 #include <libavcodec/avcodec.h>
+#include <libavutil/mem.h>
 #endif
 
 #if LIBAVCODEC_VERSION_INT < ((52<<16)+(0<<8)+0)