From owner-svn-ports-all@freebsd.org Tue Apr 24 16:39:11 2018 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id CB9F8FAB681; Tue, 24 Apr 2018 16:39:11 +0000 (UTC) (envelope-from jbeich@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 7A3FD71CE7; Tue, 24 Apr 2018 16:39:11 +0000 (UTC) (envelope-from jbeich@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 714A715A27; Tue, 24 Apr 2018 16:39:11 +0000 (UTC) (envelope-from jbeich@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w3OGdBEL012356; Tue, 24 Apr 2018 16:39:11 GMT (envelope-from jbeich@FreeBSD.org) Received: (from jbeich@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w3OGdB1I012355; Tue, 24 Apr 2018 16:39:11 GMT (envelope-from jbeich@FreeBSD.org) Message-Id: <201804241639.w3OGdB1I012355@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: jbeich set sender to jbeich@FreeBSD.org using -f From: Jan Beich Date: Tue, 24 Apr 2018 16:39:11 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r468220 - head/games/moonlight-embedded/files X-SVN-Group: ports-head X-SVN-Commit-Author: jbeich X-SVN-Commit-Paths: head/games/moonlight-embedded/files X-SVN-Commit-Revision: 468220 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 Apr 2018 16:39:12 -0000 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();