From owner-svn-ports-all@freebsd.org Fri Nov 4 07:05:52 2016 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 83F54C2F372; Fri, 4 Nov 2016 07:05:52 +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 mx1.freebsd.org (Postfix) with ESMTPS id 471B91A82; Fri, 4 Nov 2016 07:05:52 +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 uA475p07093788; Fri, 4 Nov 2016 07:05:51 GMT (envelope-from jbeich@FreeBSD.org) Received: (from jbeich@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id uA475pHI093787; Fri, 4 Nov 2016 07:05:51 GMT (envelope-from jbeich@FreeBSD.org) Message-Id: <201611040705.uA475pHI093787@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: jbeich set sender to jbeich@FreeBSD.org using -f From: Jan Beich Date: Fri, 4 Nov 2016 07:05:51 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r425290 - in head/comms/dabstick-radio: . files X-SVN-Group: ports-head 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.23 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: Fri, 04 Nov 2016 07:05:52 -0000 Author: jbeich Date: Fri Nov 4 07:05:51 2016 New Revision: 425290 URL: https://svnweb.freebsd.org/changeset/ports/425290 Log: comms/dabstick-radio: unbreak build with ffmpeg 3.x backend/mp2processor-ffmpeg.cpp:49:33: error: use of undeclared identifier 'CODEC_ID_MP1'; did you mean 'AV_CODEC_ID_MP1'? codec = avcodec_find_decoder (CODEC_ID_MP1); ^~~~~~~~~~~~ In file included from backend/mp2processor.cpp:7: backend/mp2processor-ffmpeg.cpp:66:18: error: use of undeclared identifier 'avcodec_alloc_frame' decoded_frame = avcodec_alloc_frame (); ^ backend/mp2processor-ffmpeg.cpp:107:2: error: use of undeclared identifier 'avcodec_get_frame_defaults' avcodec_get_frame_defaults (decoded_frame); ^ PR: 207547 Added: head/comms/dabstick-radio/files/patch-dabreceiver-V2_backend_mp2processor-ffmpeg.cpp (contents, props changed) Modified: head/comms/dabstick-radio/Makefile (contents, props changed) Modified: head/comms/dabstick-radio/Makefile ============================================================================== --- head/comms/dabstick-radio/Makefile Fri Nov 4 05:54:20 2016 (r425289) +++ head/comms/dabstick-radio/Makefile Fri Nov 4 07:05:51 2016 (r425290) @@ -3,7 +3,7 @@ PORTNAME= dabstick-radio PORTVERSION= 0.96 -PORTREVISION= 6 +PORTREVISION= 7 CATEGORIES= comms audio hamradio MASTER_SITES= http://www.sdr-j.tk/ \ LOCAL/nox/ Added: head/comms/dabstick-radio/files/patch-dabreceiver-V2_backend_mp2processor-ffmpeg.cpp ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/comms/dabstick-radio/files/patch-dabreceiver-V2_backend_mp2processor-ffmpeg.cpp Fri Nov 4 07:05:51 2016 (r425290) @@ -0,0 +1,29 @@ +--- dabreceiver-V2/backend/mp2processor-ffmpeg.cpp.orig 2013-05-20 16:11:57 UTC ++++ dabreceiver-V2/backend/mp2processor-ffmpeg.cpp +@@ -46,7 +46,7 @@ int32_t mp2sampleRate (uint8_t *frame) { + + avcodec_register_all (); + av_init_packet (&avpkt); +- codec = avcodec_find_decoder (CODEC_ID_MP1); ++ codec = avcodec_find_decoder (AV_CODEC_ID_MP1); + if (codec == NULL) { + fprintf (stderr, "Codec not found\n"); + return; +@@ -63,7 +63,7 @@ int32_t mp2sampleRate (uint8_t *frame) { + return; + } + +- decoded_frame = avcodec_alloc_frame (); ++ decoded_frame = av_frame_alloc (); + if (decoded_frame == NULL) { + fprintf (stderr, "Could not allocate audioframe\n"); + return; +@@ -104,7 +104,7 @@ int32_t got_frame; + (void)fwrite (MP2frame, sizeof (uint8_t), MP2framebytes, mp2File); + return; + } +- avcodec_get_frame_defaults (decoded_frame); ++ av_frame_unref (decoded_frame); + + avpkt. data = MP2frame; + avpkt. size = MP2framebytes + 20;