Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 27 Apr 2018 15:38:48 +0000 (UTC)
From:      Jan Beich <jbeich@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r468439 - head/graphics/amide/files
Message-ID:  <201804271538.w3RFcmfg066766@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jbeich
Date: Fri Apr 27 15:38:48 2018
New Revision: 468439
URL: https://svnweb.freebsd.org/changeset/ports/468439

Log:
  graphics/amide: unbreak with ffmpeg 4.0
  
  mpeg_encode.c:301:20: error: no member named 'me_method' in 'struct AVCodecContext'
    encode->context->me_method=5; /* 5 is epzs */
    ~~~~~~~~~~~~~~~  ^
  
  PR:		227726

Modified:
  head/graphics/amide/files/patch-src_mpeg__encode.c   (contents, props changed)

Modified: head/graphics/amide/files/patch-src_mpeg__encode.c
==============================================================================
--- head/graphics/amide/files/patch-src_mpeg__encode.c	Fri Apr 27 15:28:12 2018	(r468438)
+++ head/graphics/amide/files/patch-src_mpeg__encode.c	Fri Apr 27 15:38:48 2018	(r468439)
@@ -31,7 +31,7 @@
    if (!encode->picture) {
      g_warning("couldn't allocate memory for encode->picture");
      encode_free(encode);
-@@ -293,7 +294,7 @@ gpointer mpeg_encode_setup(gchar * outpu
+@@ -293,11 +294,13 @@ gpointer mpeg_encode_setup(gchar * output_filename, mp
    encode->context->time_base= (AVRational){1,FRAMES_PER_SECOND};
    encode->context->gop_size = 10; /* emit one intra frame every ten frames */
    encode->context->max_b_frames=10;
@@ -40,6 +40,12 @@
  
    /* encoding parameters */
    encode->context->sample_aspect_ratio= (AVRational){1,1}; /* our pixels are square */
++#if LIBAVCODEC_VERSION_MAJOR < 58
+   encode->context->me_method=5; /* 5 is epzs */
++#endif
+   encode->context->trellis=2; /* turn trellis quantization on */
+ 
+   /* open it */
 @@ -355,6 +356,10 @@ gpointer mpeg_encode_setup(gchar * outpu
    encode->picture->linesize[1] = encode->context->width/2;
    encode->picture->linesize[2] = encode->context->width/2;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201804271538.w3RFcmfg066766>