View | Details | Raw Unified | Return to bug 214234
Collapse All | Expand All

(-)b/multimedia/vlc/Makefile (-1 / +1 lines)
Lines 3-9 Link Here
3
3
4
PORTNAME=	vlc
4
PORTNAME=	vlc
5
DISTVERSION=	2.2.4
5
DISTVERSION=	2.2.4
6
PORTREVISION=	1
6
PORTREVISION=	2
7
PORTEPOCH=	4
7
PORTEPOCH=	4
8
CATEGORIES=	multimedia audio ipv6 net www
8
CATEGORIES=	multimedia audio ipv6 net www
9
MASTER_SITES=	http://download.videolan.org/pub/videolan/${PORTNAME}/${DISTVERSION:S/a$//}/ \
9
MASTER_SITES=	http://download.videolan.org/pub/videolan/${PORTNAME}/${DISTVERSION:S/a$//}/ \
(-)b/multimedia/vlc/files/patch-ffmpeg30 (+154 lines)
Added Link Here
1
Some changes are identical to upstream:
2
https://git.videolan.org/?p=vlc.git;a=commitdiff;h=7db8b37716c0
3
https://git.videolan.org/?p=vlc.git;a=commitdiff;h=d185cfaad535
4
https://git.videolan.org/?p=vlc.git;a=commitdiff;h=5f91febe28de
5
https://git.videolan.org/?p=vlc.git;a=commitdiff;h=3d2850fe7284
6
https://git.videolan.org/?p=vlc.git;a=commitdiff;h=dbad0d2747e7
7
8
--- configure.orig	2016-05-31 16:56:33 UTC
9
+++ configure
10
@@ -36544,7 +36544,6 @@ $as_echo "yes" >&6; }
11
   :
12
 else
13
 
14
-      as_fn_error $? "libavutil versions 55 and later are not supported." "$LINENO" 5
15
 
16
 fi
17
 
18
@@ -36836,7 +36835,6 @@ if test "${have_vaapi}" = "yes" -a "${ha
19
   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20
   test $ac_status = 0; }; then
21
 
22
-        as_fn_error $? "VA API requires FFmpeg libavcodec < 57.10 or libav." "$LINENO" 5
23
 
24
 fi
25
       ;;
26
@@ -45112,7 +45110,6 @@ if test "${have_vdpau}" = "yes" -a "${ha
27
   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28
   test $ac_status = 0; }; then
29
 
30
-        as_fn_error $? "VDPAU requires FFmpeg libavcodec < 57.10 or libav." "$LINENO" 5
31
 
32
 fi
33
       ;;
34
--- modules/codec/avcodec/audio.c.orig	2016-01-18 20:49:57 UTC
35
+++ modules/codec/avcodec/audio.c
36
@@ -39,7 +39,7 @@
37
 #include <libavcodec/avcodec.h>
38
 #include <libavutil/mem.h>
39
 
40
-#include <libavutil/audioconvert.h>
41
+#include <libavutil/channel_layout.h>
42
 
43
 #include "avcodec.h"
44
 
45
--- modules/codec/avcodec/avcommon_compat.h.orig	2015-02-02 19:42:29 UTC
46
+++ modules/codec/avcodec/avcommon_compat.h
47
@@ -506,6 +506,11 @@ enum {
48
 
49
 #endif /* HAVE_LIBAVUTIL_AVUTIL_H */
50
 
51
+/* libavutil/pixfmt.h */
52
+#ifndef PixelFormat
53
+# define PixelFormat AVPixelFormat
54
+#endif
55
+
56
 #ifdef HAVE_LIBAVFORMAT_AVFORMAT_H
57
 # include <libavformat/avformat.h>
58
 
59
--- modules/codec/avcodec/encoder.c.orig	2015-10-21 17:48:45 UTC
60
+++ modules/codec/avcodec/encoder.c
61
@@ -41,7 +41,7 @@
62
 #include <vlc_cpu.h>
63
 
64
 #include <libavcodec/avcodec.h>
65
-#include <libavutil/audioconvert.h>
66
+#include <libavutil/channel_layout.h>
67
 
68
 #include "avcodec.h"
69
 #include "avcommon.h"
70
@@ -311,7 +311,7 @@ int OpenEncoder( vlc_object_t *p_this )
71
     else if( !GetFfmpegCodec( p_enc->fmt_out.i_codec, &i_cat, &i_codec_id,
72
                              &psz_namecodec ) )
73
     {
74
-        if( FindFfmpegChroma( p_enc->fmt_out.i_codec ) == PIX_FMT_NONE )
75
+        if( FindFfmpegChroma( p_enc->fmt_out.i_codec ) == AV_PIX_FMT_NONE )
76
             return VLC_EGENERIC; /* handed chroma output */
77
 
78
         i_cat      = VIDEO_ES;
79
@@ -1017,7 +1017,7 @@ errmsg:
80
         }
81
     }
82
 
83
-    p_sys->frame = avcodec_alloc_frame();
84
+    p_sys->frame = av_frame_alloc();
85
     if( !p_sys->frame )
86
     {
87
         goto error;
88
@@ -1088,7 +1088,7 @@ static block_t *EncodeVideo( encoder_t *
89
     AVFrame *frame = NULL;
90
     if( likely(p_pict) ) {
91
         frame = p_sys->frame;
92
-        avcodec_get_frame_defaults( frame );
93
+        av_frame_unref( frame );
94
         for( i_plane = 0; i_plane < p_pict->i_planes; i_plane++ )
95
         {
96
             p_sys->frame->data[i_plane] = p_pict->p[i_plane].p_pixels;
97
@@ -1329,7 +1329,7 @@ static block_t *handle_delay_buffer( enc
98
     //How much we need to copy from new packet
99
     const int leftover = leftover_samples * p_sys->p_context->channels * p_sys->i_sample_bytes;
100
 
101
-    avcodec_get_frame_defaults( p_sys->frame );
102
+    av_frame_unref( p_sys->frame );
103
     p_sys->frame->format     = p_sys->p_context->sample_fmt;
104
     p_sys->frame->nb_samples = leftover_samples + p_sys->i_samples_delay;
105
 
106
@@ -1451,7 +1451,7 @@ static block_t *EncodeAudio( encoder_t *
107
     while( ( p_aout_buf->i_nb_samples >= p_sys->i_frame_size ) ||
108
            ( p_sys->b_variable && p_aout_buf->i_nb_samples ) )
109
     {
110
-        avcodec_get_frame_defaults( p_sys->frame );
111
+        av_frame_unref( p_sys->frame );
112
         if( p_sys->b_variable )
113
             p_sys->frame->nb_samples = p_aout_buf->i_nb_samples;
114
         else
115
--- modules/codec/avcodec/vaapi.c.orig	2015-02-02 19:42:29 UTC
116
+++ modules/codec/avcodec/vaapi.c
117
@@ -595,7 +595,7 @@ static int Create( vlc_va_t *p_va, AVCod
118
         return err;
119
 
120
     /* Only VLD supported */
121
-    p_va->pix_fmt = PIX_FMT_VAAPI_VLD;
122
+    p_va->pix_fmt = AV_PIX_FMT_VAAPI_VLD;
123
     p_va->setup = Setup;
124
     p_va->get = Get;
125
     p_va->release = Release;
126
--- modules/codec/avcodec/video.c.orig	2016-04-07 19:36:15 UTC
127
+++ modules/codec/avcodec/video.c
128
@@ -234,7 +234,7 @@ int InitVideoDec( decoder_t *p_dec, AVCo
129
     p_sys->p_codec = p_codec;
130
     p_sys->i_codec_id = i_codec_id;
131
     p_sys->psz_namecodec = psz_namecodec;
132
-    p_sys->p_ff_pic = avcodec_alloc_frame();
133
+    p_sys->p_ff_pic = av_frame_alloc();
134
     p_sys->b_delayed_open = true;
135
     p_sys->p_va = NULL;
136
     vlc_sem_init( &p_sys->sem_mt, 0 );
137
@@ -446,7 +446,7 @@ int InitVideoDec( decoder_t *p_dec, AVCo
138
     if( ffmpeg_OpenCodec( p_dec ) < 0 )
139
     {
140
         msg_Err( p_dec, "cannot open codec (%s)", p_sys->psz_namecodec );
141
-        avcodec_free_frame( &p_sys->p_ff_pic );
142
+        av_frame_free( &p_sys->p_ff_pic );
143
         vlc_sem_destroy( &p_sys->sem_mt );
144
         free( p_sys );
145
         return VLC_EGENERIC;
146
@@ -826,7 +826,7 @@ void EndVideoDec( decoder_t *p_dec )
147
     wait_mt( p_sys );
148
 
149
     if( p_sys->p_ff_pic )
150
-        avcodec_free_frame( &p_sys->p_ff_pic );
151
+        av_frame_free( &p_sys->p_ff_pic );
152
 
153
     if( p_sys->p_va )
154
         vlc_va_Delete( p_sys->p_va );

Return to bug 214234