<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[145941] trunk/dports/multimedia/transcode</title>
</head>
<body>

<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt;  }
#msg dl a { font-weight: bold}
#msg dl a:link    { color:#fc3; }
#msg dl a:active  { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff  {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta">
<dt>Revision</dt> <dd><a href="https://trac.macports.org/changeset/145941">145941</a></dd>
<dt>Author</dt> <dd>devans@macports.org</dd>
<dt>Date</dt> <dd>2016-02-21 21:59:19 -0800 (Sun, 21 Feb 2016)</dd>
</dl>

<h3>Log Message</h3>
<pre>transcode: patch for ffmpeg 3.0 compatibility, no need to increment revision.</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkdportsmultimediatranscodePortfile">trunk/dports/multimedia/transcode/Portfile</a></li>
</ul>

<h3>Added Paths</h3>
<ul>
<li><a href="#trunkdportsmultimediatranscodefilespatchffmpeg30diff">trunk/dports/multimedia/transcode/files/patch-ffmpeg-3.0.diff</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkdportsmultimediatranscodePortfile"></a>
<div class="modfile"><h4>Modified: trunk/dports/multimedia/transcode/Portfile (145940 => 145941)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/dports/multimedia/transcode/Portfile        2016-02-22 01:28:34 UTC (rev 145940)
+++ trunk/dports/multimedia/transcode/Portfile        2016-02-22 05:59:19 UTC (rev 145941)
</span><span class="lines">@@ -53,7 +53,8 @@
</span><span class="cx">                 patch-encode-Makefile.in.diff \
</span><span class="cx">                 patch-ffmpeg-2.0.diff \
</span><span class="cx">                 patch-ffmpeg-2.4.diff \
</span><del>-                patch-freetype-2.5.1.diff
</del><ins>+                patch-freetype-2.5.1.diff \
+                patch-ffmpeg-3.0.diff
</ins><span class="cx"> 
</span><span class="cx"> configure.args  --disable-mmx \
</span><span class="cx">                 --enable-libmpeg2 \
</span></span></pre></div>
<a id="trunkdportsmultimediatranscodefilespatchffmpeg30diff"></a>
<div class="addfile"><h4>Added: trunk/dports/multimedia/transcode/files/patch-ffmpeg-3.0.diff (0 => 145941)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/dports/multimedia/transcode/files/patch-ffmpeg-3.0.diff                                (rev 0)
+++ trunk/dports/multimedia/transcode/files/patch-ffmpeg-3.0.diff        2016-02-22 05:59:19 UTC (rev 145941)
</span><span class="lines">@@ -0,0 +1,371 @@
</span><ins>+diff -ur export.orig/aud_aux.c export/aud_aux.c
+--- export.orig/aud_aux.c        2016-02-21 21:08:41.000000000 -0800
++++ export/aud_aux.c        2016-02-21 21:10:16.000000000 -0800
+@@ -326,10 +326,10 @@

+     switch (o_codec) {
+       case   0x50:
+-        codeid = CODEC_ID_MP2;
++        codeid = AV_CODEC_ID_MP2;
+         break;
+       case 0x2000:
+-        codeid = CODEC_ID_AC3;
++        codeid = AV_CODEC_ID_AC3;
+         break;
+       default:
+         tc_warn(&quot;cannot init ffmpeg with %x&quot;, o_codec);
+@@ -363,7 +363,7 @@
+     TC_UNLOCK_LIBAVCODEC;
+     if (ret &lt; 0) {
+         tc_warn(&quot;tc_audio_init_ffmpeg: could not open %s codec !&quot;,
+-                (codeid == CODEC_ID_MP2) ?&quot;mpa&quot; :&quot;ac3&quot;);
++                (codeid == AV_CODEC_ID_MP2) ?&quot;mpa&quot; :&quot;ac3&quot;);
+         return(TC_EXPORT_ERROR);
+     }

+diff -ur export.orig/export_ffmpeg.c export/export_ffmpeg.c
+--- export.orig/export_ffmpeg.c        2016-02-21 21:08:41.000000000 -0800
++++ export/export_ffmpeg.c        2016-02-21 21:12:19.000000000 -0800
+@@ -490,7 +490,7 @@
+     lavc_venc_frame   = avcodec_alloc_frame();

+     lavc_convert_frame= avcodec_alloc_frame();
+-    size = avpicture_get_size(PIX_FMT_RGB24, vob-&gt;ex_v_width, vob-&gt;ex_v_height);
++    size = avpicture_get_size(AV_PIX_FMT_RGB24, vob-&gt;ex_v_width, vob-&gt;ex_v_height);
+     enc_buffer = tc_malloc(size);

+     if (lavc_venc_context == NULL || !enc_buffer || !lavc_convert_frame) {
+@@ -1102,7 +1102,7 @@
+     lavc_venc_context-&gt;prediction_method = lavc_param_prediction_method;

+     if(is_huffyuv)
+-        lavc_venc_context-&gt;pix_fmt = PIX_FMT_YUV422P;
++        lavc_venc_context-&gt;pix_fmt = AV_PIX_FMT_YUV422P;
+     else
+     {
+         switch(pix_fmt)
+@@ -1111,18 +1111,18 @@
+             case CODEC_RGB:
+             {
+                 if(is_mjpeg)
+-                    lavc_venc_context-&gt;pix_fmt = PIX_FMT_YUVJ420P;
++                    lavc_venc_context-&gt;pix_fmt = AV_PIX_FMT_YUVJ420P;
+                 else
+-                    lavc_venc_context-&gt;pix_fmt = PIX_FMT_YUV420P;
++                    lavc_venc_context-&gt;pix_fmt = AV_PIX_FMT_YUV420P;
+                 break;
+             }

+             case CODEC_YUV422:
+             {
+                 if(is_mjpeg)
+-                    lavc_venc_context-&gt;pix_fmt = PIX_FMT_YUVJ422P;
++                    lavc_venc_context-&gt;pix_fmt = AV_PIX_FMT_YUVJ422P;
+                 else
+-                    lavc_venc_context-&gt;pix_fmt = PIX_FMT_YUV422P;
++                    lavc_venc_context-&gt;pix_fmt = AV_PIX_FMT_YUV422P;
+                 break;
+             }

+@@ -1606,7 +1606,7 @@
+                         YUV_INIT_PLANES(src, param-&gt;buffer, IMG_YUV_DEFAULT,
+                                                 lavc_venc_context-&gt;width, lavc_venc_context-&gt;height);
+                 avpicture_fill((AVPicture *)lavc_venc_frame, img_buffer,
+-                               PIX_FMT_YUV422P, lavc_venc_context-&gt;width,
++                               AV_PIX_FMT_YUV422P, lavc_venc_context-&gt;width,
+                                lavc_venc_context-&gt;height);
+                         /* FIXME: can't use tcv_convert (see decode_lavc.c) */
+                 ac_imgconvert(src, IMG_YUV_DEFAULT,
+@@ -1636,7 +1636,7 @@
+                                                 lavc_venc_context-&gt;width,
+                                 lavc_venc_context-&gt;height);
+                 avpicture_fill((AVPicture *)lavc_venc_frame, img_buffer,
+-                               PIX_FMT_YUV420P, lavc_venc_context-&gt;width,
++                               AV_PIX_FMT_YUV420P, lavc_venc_context-&gt;width,
+                                lavc_venc_context-&gt;height);
+                 ac_imgconvert(src, IMG_YUV422P,
+                               lavc_venc_frame-&gt;data, IMG_YUV420P,
+@@ -1647,7 +1647,7 @@

+         case CODEC_RGB:
+             avpicture_fill((AVPicture *)lavc_venc_frame, img_buffer,
+-                           PIX_FMT_YUV420P, lavc_venc_context-&gt;width,
++                           AV_PIX_FMT_YUV420P, lavc_venc_context-&gt;width,
+                            lavc_venc_context-&gt;height);
+                 ac_imgconvert(&amp;param-&gt;buffer, IMG_RGB_DEFAULT,
+                               lavc_venc_frame-&gt;data, IMG_YUV420P,
+diff -ur import.orig/import_ffmpeg.c import/import_ffmpeg.c
+--- import.orig/import_ffmpeg.c        2016-02-21 21:25:39.000000000 -0800
++++ import/import_ffmpeg.c        2016-02-21 21:28:47.000000000 -0800
+@@ -59,51 +59,51 @@

+ // fourCC to ID mapping taken from MPlayer's codecs.conf
+ static struct ffmpeg_codec ffmpeg_codecs[] = {
+-  {CODEC_ID_MSMPEG4V1, TC_CODEC_ERROR, &quot;mp41&quot;,
++  {AV_CODEC_ID_MSMPEG4V1, TC_CODEC_ERROR, &quot;mp41&quot;,
+     {&quot;MP41&quot;, &quot;DIV1&quot;, &quot;&quot;}},
+-  {CODEC_ID_MSMPEG4V2, TC_CODEC_MP42, &quot;mp42&quot;,
++  {AV_CODEC_ID_MSMPEG4V2, TC_CODEC_MP42, &quot;mp42&quot;,
+     {&quot;MP42&quot;, &quot;DIV2&quot;, &quot;&quot;}},
+-  {CODEC_ID_MSMPEG4V3, TC_CODEC_DIVX3, &quot;msmpeg4&quot;,
++  {AV_CODEC_ID_MSMPEG4V3, TC_CODEC_DIVX3, &quot;msmpeg4&quot;,
+     {&quot;DIV3&quot;, &quot;DIV5&quot;, &quot;AP41&quot;, &quot;MPG3&quot;, &quot;MP43&quot;, &quot;&quot;}},
+-  {CODEC_ID_MPEG4, TC_CODEC_DIVX4, &quot;mpeg4&quot;,
++  {AV_CODEC_ID_MPEG4, TC_CODEC_DIVX4, &quot;mpeg4&quot;,
+     {&quot;DIVX&quot;, &quot;XVID&quot;, &quot;MP4S&quot;, &quot;M4S2&quot;, &quot;MP4V&quot;, &quot;UMP4&quot;, &quot;DX50&quot;, &quot;&quot;}},
+-  {CODEC_ID_MJPEG, TC_CODEC_MJPEG, &quot;mjpeg&quot;,
++  {AV_CODEC_ID_MJPEG, TC_CODEC_MJPEG, &quot;mjpeg&quot;,
+     {&quot;MJPG&quot;, &quot;AVRN&quot;, &quot;AVDJ&quot;, &quot;JPEG&quot;, &quot;MJPA&quot;, &quot;JFIF&quot;, &quot;&quot;}},
+-  {CODEC_ID_MPEG1VIDEO, TC_CODEC_MPG1, &quot;mpeg1video&quot;,
++  {AV_CODEC_ID_MPEG1VIDEO, TC_CODEC_MPG1, &quot;mpeg1video&quot;,
+     {&quot;MPG1&quot;, &quot;&quot;}},
+-  {CODEC_ID_DVVIDEO, TC_CODEC_DV, &quot;dvvideo&quot;,
++  {AV_CODEC_ID_DVVIDEO, TC_CODEC_DV, &quot;dvvideo&quot;,
+     {&quot;DVSD&quot;, &quot;&quot;}},
+-  {CODEC_ID_WMV1, TC_CODEC_WMV1, &quot;wmv1&quot;,
++  {AV_CODEC_ID_WMV1, TC_CODEC_WMV1, &quot;wmv1&quot;,
+     {&quot;WMV1&quot;, &quot;&quot;}},
+-  {CODEC_ID_WMV2, TC_CODEC_WMV2, &quot;wmv2&quot;,
++  {AV_CODEC_ID_WMV2, TC_CODEC_WMV2, &quot;wmv2&quot;,
+     {&quot;WMV2&quot;, &quot;&quot;}},
+-  {CODEC_ID_HUFFYUV, TC_CODEC_HUFFYUV, &quot;hfyu&quot;,
++  {AV_CODEC_ID_HUFFYUV, TC_CODEC_HUFFYUV, &quot;hfyu&quot;,
+     {&quot;HFYU&quot;, &quot;&quot;}},
+-  {CODEC_ID_H263I, TC_CODEC_H263I, &quot;h263i&quot;,
++  {AV_CODEC_ID_H263I, TC_CODEC_H263I, &quot;h263i&quot;,
+     {&quot;I263&quot;, &quot;&quot;}},
+-  {CODEC_ID_H263P, TC_CODEC_H263P, &quot;h263p&quot;,
++  {AV_CODEC_ID_H263P, TC_CODEC_H263P, &quot;h263p&quot;,
+     {&quot;H263&quot;, &quot;U263&quot;, &quot;VIV1&quot;, &quot;&quot;}},
+-  {CODEC_ID_H264, TC_CODEC_H264, &quot;h264&quot;,
++  {AV_CODEC_ID_H264, TC_CODEC_H264, &quot;h264&quot;,
+     {&quot;H264&quot;, &quot;h264&quot;, &quot;X264&quot;, &quot;x264&quot;, &quot;avc1&quot;, &quot;&quot;}},
+-  {CODEC_ID_RV10, TC_CODEC_RV10, &quot;rv10&quot;,
++  {AV_CODEC_ID_RV10, TC_CODEC_RV10, &quot;rv10&quot;,
+     {&quot;RV10&quot;, &quot;RV13&quot;, &quot;&quot;}},
+-  {CODEC_ID_SVQ1, TC_CODEC_SVQ1, &quot;svq1&quot;,
++  {AV_CODEC_ID_SVQ1, TC_CODEC_SVQ1, &quot;svq1&quot;,
+     {&quot;SVQ1&quot;, &quot;&quot;}},
+-  {CODEC_ID_SVQ3, TC_CODEC_SVQ3, &quot;svq3&quot;,
++  {AV_CODEC_ID_SVQ3, TC_CODEC_SVQ3, &quot;svq3&quot;,
+     {&quot;SVQ3&quot;, &quot;&quot;}},
+-  {CODEC_ID_MPEG2VIDEO, TC_CODEC_MPEG2, &quot;mpeg2video&quot;,
++  {AV_CODEC_ID_MPEG2VIDEO, TC_CODEC_MPEG2, &quot;mpeg2video&quot;,
+     {&quot;MPG2&quot;, &quot;&quot;}},
+-  {CODEC_ID_MPEG2VIDEO, TC_CODEC_MPEG, &quot;mpeg2video&quot;,
++  {AV_CODEC_ID_MPEG2VIDEO, TC_CODEC_MPEG, &quot;mpeg2video&quot;,
+     {&quot;MPG2&quot;, &quot;&quot;}},
+-  {CODEC_ID_ASV1, TC_CODEC_ASV1, &quot;asv1&quot;,
++  {AV_CODEC_ID_ASV1, TC_CODEC_ASV1, &quot;asv1&quot;,
+     {&quot;ASV1&quot;, &quot;&quot;}},
+-  {CODEC_ID_ASV2, TC_CODEC_ASV2, &quot;asv2&quot;,
++  {AV_CODEC_ID_ASV2, TC_CODEC_ASV2, &quot;asv2&quot;,
+     {&quot;ASV2&quot;, &quot;&quot;}},
+-  {CODEC_ID_FFV1, TC_CODEC_FFV1, &quot;ffv1&quot;,
++  {AV_CODEC_ID_FFV1, TC_CODEC_FFV1, &quot;ffv1&quot;,
+     {&quot;FFV1&quot;, &quot;&quot;}},
+-  {CODEC_ID_RAWVIDEO, TC_CODEC_YUV420P, &quot;raw&quot;,
++  {AV_CODEC_ID_RAWVIDEO, TC_CODEC_YUV420P, &quot;raw&quot;,
+     {&quot;I420&quot;, &quot;IYUV&quot;, &quot;&quot;}},
+-  {CODEC_ID_RAWVIDEO, TC_CODEC_YUV422P, &quot;raw&quot;,
++  {AV_CODEC_ID_RAWVIDEO, TC_CODEC_YUV422P, &quot;raw&quot;,
+     {&quot;Y42B&quot;, &quot;&quot;}},
+   {0, TC_CODEC_UNKNOWN, NULL, {&quot;&quot;}}};

+@@ -324,13 +324,13 @@
+     // XXX: some codecs need extra data
+     switch (codec-&gt;id)
+     {
+-      case CODEC_ID_MJPEG: extra_data_size  = 28; break;
+-      case CODEC_ID_LJPEG: extra_data_size  = 28; break;
+-      case CODEC_ID_HUFFYUV: extra_data_size = 1000; break;
+-      case CODEC_ID_ASV1: extra_data_size = 8; break;
+-      case CODEC_ID_ASV2: extra_data_size = 8; break;
+-      case CODEC_ID_WMV1: extra_data_size = 4; break;
+-      case CODEC_ID_WMV2: extra_data_size = 4; break;
++      case AV_CODEC_ID_MJPEG: extra_data_size  = 28; break;
++      case AV_CODEC_ID_LJPEG: extra_data_size  = 28; break;
++      case AV_CODEC_ID_HUFFYUV: extra_data_size = 1000; break;
++      case AV_CODEC_ID_ASV1: extra_data_size = 8; break;
++      case AV_CODEC_ID_ASV2: extra_data_size = 8; break;
++      case AV_CODEC_ID_WMV1: extra_data_size = 4; break;
++      case AV_CODEC_ID_WMV2: extra_data_size = 4; break;
+       default: extra_data_size = 0; break;
+     }

+@@ -360,7 +360,7 @@
+         frame_size = x_dim*y_dim + 2*UV_PLANE_SIZE(IMG_YUV_DEFAULT,x_dim,y_dim);

+         // we adapt the color space
+-        if(codec-&gt;id == CODEC_ID_MJPEG) {
++        if(codec-&gt;id == AV_CODEC_ID_MJPEG) {
+           enable_levels_filter();
+         }
+         break;
+@@ -434,7 +434,7 @@
+       }

+       // we adapt the color space
+-      if(codec-&gt;id == CODEC_ID_MJPEG) {
++      if(codec-&gt;id == AV_CODEC_ID_MJPEG) {
+         enable_levels_filter();
+       }

+@@ -504,13 +504,13 @@
+       int bkey = 0;

+       // check for keyframes
+-      if (codec-&gt;id == CODEC_ID_MSMPEG4V3) {
++      if (codec-&gt;id == AV_CODEC_ID_MSMPEG4V3) {
+         if (divx3_is_key(buffer)) bkey = 1;
+       }
+-      else if (codec-&gt;id == CODEC_ID_MPEG4) {
++      else if (codec-&gt;id == AV_CODEC_ID_MPEG4) {
+         if (mpeg4_is_key(buffer, bytes_read)) bkey = 1;
+       }
+-      else if (codec-&gt;id == CODEC_ID_MJPEG) {
++      else if (codec-&gt;id == AV_CODEC_ID_MJPEG) {
+         bkey = 1;
+       }

+@@ -580,8 +580,8 @@

+     // Convert avcodec image to our internal YUV or RGB format
+     switch (lavc_dec_context-&gt;pix_fmt) {
+-      case PIX_FMT_YUVJ420P:
+-      case PIX_FMT_YUV420P:
++      case AV_PIX_FMT_YUVJ420P:
++      case AV_PIX_FMT_YUV420P:
+         src_fmt = IMG_YUV420P;
+         YUV_INIT_PLANES(src_planes, frame, src_fmt,
+                         lavc_dec_context-&gt;width, lavc_dec_context-&gt;height);
+@@ -612,7 +612,7 @@
+         }
+         break;

+-      case PIX_FMT_YUV411P:
++      case AV_PIX_FMT_YUV411P:
+         src_fmt = IMG_YUV411P;
+         YUV_INIT_PLANES(src_planes, frame, src_fmt,
+                         lavc_dec_context-&gt;width, lavc_dec_context-&gt;height);
+@@ -640,8 +640,8 @@
+         }
+         break;

+-      case PIX_FMT_YUVJ422P:
+-      case PIX_FMT_YUV422P:
++      case AV_PIX_FMT_YUVJ422P:
++      case AV_PIX_FMT_YUV422P:
+         src_fmt = IMG_YUV422P;
+         YUV_INIT_PLANES(src_planes, frame, src_fmt,
+                         lavc_dec_context-&gt;width, lavc_dec_context-&gt;height);
+@@ -669,8 +669,8 @@
+         }
+         break;

+-      case PIX_FMT_YUVJ444P:
+-      case PIX_FMT_YUV444P:
++      case AV_PIX_FMT_YUVJ444P:
++      case AV_PIX_FMT_YUV444P:
+         src_fmt = IMG_YUV444P;
+         YUV_INIT_PLANES(src_planes, frame, src_fmt,
+                         lavc_dec_context-&gt;width, lavc_dec_context-&gt;height);
+diff -ur import.orig/decode_lavc.c import/decode_lavc.c
+--- import.orig/decode_lavc.c        2016-02-21 21:38:42.000000000 -0800
++++ import/decode_lavc.c        2016-02-21 21:40:38.000000000 -0800
+@@ -58,37 +58,37 @@

+ // fourCC to ID mapping taken from MPlayer's codecs.conf
+ static struct ffmpeg_codec ffmpeg_codecs[] = {
+-  {CODEC_ID_MSMPEG4V1, TC_CODEC_ERROR, &quot;mp41&quot;,
++  {AV_CODEC_ID_MSMPEG4V1, TC_CODEC_ERROR, &quot;mp41&quot;,
+     {&quot;MP41&quot;, &quot;DIV1&quot;, &quot;&quot;}},
+-  {CODEC_ID_MSMPEG4V2, TC_CODEC_MP42, &quot;mp42&quot;,
++  {AV_CODEC_ID_MSMPEG4V2, TC_CODEC_MP42, &quot;mp42&quot;,
+     {&quot;MP42&quot;, &quot;DIV2&quot;, &quot;&quot;}},
+-  {CODEC_ID_MSMPEG4V3, TC_CODEC_DIVX3, &quot;msmpeg4&quot;,
++  {AV_CODEC_ID_MSMPEG4V3, TC_CODEC_DIVX3, &quot;msmpeg4&quot;,
+     {&quot;DIV3&quot;, &quot;DIV5&quot;, &quot;AP41&quot;, &quot;MPG3&quot;, &quot;MP43&quot;, &quot;&quot;}},
+-  {CODEC_ID_MPEG4, TC_CODEC_DIVX4, &quot;mpeg4&quot;,
++  {AV_CODEC_ID_MPEG4, TC_CODEC_DIVX4, &quot;mpeg4&quot;,
+     {&quot;DIVX&quot;, &quot;XVID&quot;, &quot;MP4S&quot;, &quot;M4S2&quot;, &quot;MP4V&quot;, &quot;UMP4&quot;, &quot;DX50&quot;, &quot;&quot;}},
+-  {CODEC_ID_MJPEG, TC_CODEC_MJPEG, &quot;mjpeg&quot;,
++  {AV_CODEC_ID_MJPEG, TC_CODEC_MJPEG, &quot;mjpeg&quot;,
+     {&quot;MJPG&quot;, &quot;AVRN&quot;, &quot;AVDJ&quot;, &quot;JPEG&quot;, &quot;MJPA&quot;, &quot;JFIF&quot;, &quot;&quot;}},
+-  {CODEC_ID_MPEG1VIDEO, TC_CODEC_MPEG1VIDEO, &quot;mpeg1video&quot;,
++  {AV_CODEC_ID_MPEG1VIDEO, TC_CODEC_MPEG1VIDEO, &quot;mpeg1video&quot;,
+     {&quot;MPG1&quot;, &quot;&quot;}},
+-  {CODEC_ID_DVVIDEO, TC_CODEC_DV, &quot;dvvideo&quot;,
++  {AV_CODEC_ID_DVVIDEO, TC_CODEC_DV, &quot;dvvideo&quot;,
+     {&quot;DVSD&quot;, &quot;&quot;}},
+-  {CODEC_ID_WMV1, TC_CODEC_WMV1, &quot;wmv1&quot;,
++  {AV_CODEC_ID_WMV1, TC_CODEC_WMV1, &quot;wmv1&quot;,
+     {&quot;WMV1&quot;, &quot;&quot;}},
+-  {CODEC_ID_WMV2, TC_CODEC_WMV2, &quot;wmv2&quot;,
++  {AV_CODEC_ID_WMV2, TC_CODEC_WMV2, &quot;wmv2&quot;,
+     {&quot;WMV2&quot;, &quot;&quot;}},
+-  {CODEC_ID_HUFFYUV, TC_CODEC_HUFFYUV, &quot;hfyu&quot;,
++  {AV_CODEC_ID_HUFFYUV, TC_CODEC_HUFFYUV, &quot;hfyu&quot;,
+     {&quot;HFYU&quot;, &quot;&quot;}},
+-  {CODEC_ID_H263I, TC_CODEC_H263I, &quot;h263i&quot;,
++  {AV_CODEC_ID_H263I, TC_CODEC_H263I, &quot;h263i&quot;,
+     {&quot;I263&quot;, &quot;&quot;}},
+-  {CODEC_ID_H263P, TC_CODEC_H263P, &quot;h263p&quot;,
++  {AV_CODEC_ID_H263P, TC_CODEC_H263P, &quot;h263p&quot;,
+     {&quot;H263&quot;, &quot;U263&quot;, &quot;VIV1&quot;, &quot;&quot;}},
+-  {CODEC_ID_RV10, TC_CODEC_RV10, &quot;rv10&quot;,
++  {AV_CODEC_ID_RV10, TC_CODEC_RV10, &quot;rv10&quot;,
+     {&quot;RV10&quot;, &quot;RV13&quot;, &quot;&quot;}},
+-  {CODEC_ID_SVQ1, TC_CODEC_SVQ1, &quot;svq1&quot;,
++  {AV_CODEC_ID_SVQ1, TC_CODEC_SVQ1, &quot;svq1&quot;,
+     {&quot;SVQ1&quot;, &quot;&quot;}},
+-  {CODEC_ID_SVQ3, TC_CODEC_SVQ3, &quot;svq3&quot;,
++  {AV_CODEC_ID_SVQ3, TC_CODEC_SVQ3, &quot;svq3&quot;,
+     {&quot;SVQ3&quot;, &quot;&quot;}},
+-  {CODEC_ID_MPEG2VIDEO, TC_CODEC_MPEG2, &quot;mpeg2video&quot;,
++  {AV_CODEC_ID_MPEG2VIDEO, TC_CODEC_MPEG2, &quot;mpeg2video&quot;,
+     {&quot;MPG2&quot;, &quot;&quot;}},
+   {0, TC_CODEC_UNKNOWN, NULL, {&quot;&quot;}}};

+@@ -290,8 +290,8 @@

+       // Convert avcodec image to the requested YUV or RGB format
+       switch (lavc_dec_context-&gt;pix_fmt) {
+-        case PIX_FMT_YUVJ420P:
+-        case PIX_FMT_YUV420P:
++        case AV_PIX_FMT_YUVJ420P:
++        case AV_PIX_FMT_YUV420P:
+             // Remove &quot;dead space&quot; at right edge of planes, if any
+             if (picture.linesize[0] != lavc_dec_context-&gt;width) {
+                 int y;
+@@ -315,7 +315,7 @@
+                           pix_fmt==TC_CODEC_YUV420P ? IMG_YUV420P : IMG_RGB_DEFAULT,
+                           lavc_dec_context-&gt;width, lavc_dec_context-&gt;height);
+             break;
+-        case PIX_FMT_YUV411P:
++        case AV_PIX_FMT_YUV411P:
+             if (picture.linesize[0] != lavc_dec_context-&gt;width) {
+                 int y;
+                 for (y = 0; y &lt; lavc_dec_context-&gt;height; y++) {
+@@ -334,8 +334,8 @@
+                           pix_fmt==TC_CODEC_YUV420P ? IMG_YUV420P : IMG_RGB_DEFAULT,
+                           lavc_dec_context-&gt;width, lavc_dec_context-&gt;height);
+             break;
+-        case PIX_FMT_YUVJ422P:
+-        case PIX_FMT_YUV422P:
++        case AV_PIX_FMT_YUVJ422P:
++        case AV_PIX_FMT_YUV422P:
+             if (picture.linesize[0] != lavc_dec_context-&gt;width) {
+                 int y;
+                 for (y = 0; y &lt; lavc_dec_context-&gt;height; y++) {
+@@ -354,8 +354,8 @@
+                           pix_fmt==TC_CODEC_YUV420P ? IMG_YUV420P : IMG_RGB_DEFAULT,
+                           lavc_dec_context-&gt;width, lavc_dec_context-&gt;height);
+             break;
+-        case PIX_FMT_YUVJ444P:
+-        case PIX_FMT_YUV444P:
++        case AV_PIX_FMT_YUVJ444P:
++        case AV_PIX_FMT_YUV444P:
+             if (picture.linesize[0] != lavc_dec_context-&gt;width) {
+                 int y;
+                 for (y = 0; y &lt; lavc_dec_context-&gt;height; y++) {
</ins></span></pre>
</div>
</div>

</body>
</html>