Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 24 Apr 2018 16:39:11 +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: r468220 - head/games/moonlight-embedded/files
Message-ID:  <201804241639.w3OGdB1I012355@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jbeich
Date: Tue Apr 24 16:39:11 2018
New Revision: 468220
URL: https://svnweb.freebsd.org/changeset/ports/468220

Log:
  games/moonlight-embedded: unbreak with ffmpeg 4.0
  
  src/video/ffmpeg.c:99:27: error: use of undeclared identifier 'CODEC_FLAG_LOW_DELAY'
      decoder_ctx->flags |= CODEC_FLAG_LOW_DELAY;
                            ^
  src/video/sdl.c:43:48: error: use of undeclared identifier 'FF_INPUT_BUFFER_PADDING_SIZE'
    ffmpeg_buffer = malloc(DECODER_BUFFER_SIZE + FF_INPUT_BUFFER_PADDING_SIZE);
                                                 ^
  
  PR:		227726

Added:
  head/games/moonlight-embedded/files/patch-ffmpeg4   (contents, props changed)

Added: head/games/moonlight-embedded/files/patch-ffmpeg4
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/games/moonlight-embedded/files/patch-ffmpeg4	Tue Apr 24 16:39:11 2018	(r468220)
@@ -0,0 +1,29 @@
+src/video/ffmpeg.c:99:27: error: use of undeclared identifier 'CODEC_FLAG_LOW_DELAY'
+    decoder_ctx->flags |= CODEC_FLAG_LOW_DELAY;
+                          ^
+src/video/sdl.c:43:48: error: use of undeclared identifier 'FF_INPUT_BUFFER_PADDING_SIZE'
+  ffmpeg_buffer = malloc(DECODER_BUFFER_SIZE + FF_INPUT_BUFFER_PADDING_SIZE);
+                                               ^
+
+--- src/video/ffmpeg.c.orig	2018-01-14 14:09:59 UTC
++++ src/video/ffmpeg.c
+@@ -96,7 +96,7 @@ int ffmpeg_init(int videoFormat, int width, int height
+ 
+   if (perf_lvl & LOW_LATENCY_DECODE)
+     // Use low delay single threaded encoding
+-    decoder_ctx->flags |= CODEC_FLAG_LOW_DELAY;
++    decoder_ctx->flags |= AV_CODEC_FLAG_LOW_DELAY;
+ 
+   if (perf_lvl & SLICE_THREADING)
+     decoder_ctx->thread_type = FF_THREAD_SLICE;
+--- src/video/sdl.c.orig	2018-01-14 14:09:59 UTC
++++ src/video/sdl.c
+@@ -40,7 +40,7 @@ static int sdl_setup(int videoFormat, int width, int h
+     return -1;
+   }
+   
+-  ffmpeg_buffer = malloc(DECODER_BUFFER_SIZE + FF_INPUT_BUFFER_PADDING_SIZE);
++  ffmpeg_buffer = malloc(DECODER_BUFFER_SIZE + AV_INPUT_BUFFER_PADDING_SIZE);
+   if (ffmpeg_buffer == NULL) {
+     fprintf(stderr, "Not enough memory\n");
+     ffmpeg_destroy();



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