From owner-freebsd-multimedia@FreeBSD.ORG Thu May 3 13:08:12 2007 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id EC71B16A40E for ; Thu, 3 May 2007 13:08:11 +0000 (UTC) (envelope-from buhnux@gmail.com) Received: from mu-out-0910.google.com (mu-out-0910.google.com [209.85.134.187]) by mx1.freebsd.org (Postfix) with ESMTP id 6A0E713C4AD for ; Thu, 3 May 2007 13:08:11 +0000 (UTC) (envelope-from buhnux@gmail.com) Received: by mu-out-0910.google.com with SMTP id g7so490008muf for ; Thu, 03 May 2007 06:08:10 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=j/jUSkyEZhcbn/dbMkffOnZBIcpAzRt7pK+K5yROu/BlvS+mO9gqe6dIrW0zxzjRw0mR6EOcoWlH+KGKg0K8hC0TsWGRld5cs2vZ3Zn+nNHnAAJEMDZWqV7VnErge2km0YYXetOUQYMacbKKwLy7C4E5FGFAq4RGetfgovdiqBQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=X6xaoAXjub7Db6fhBUNvl6HT6karxRMm7DfFFj70XyiKILkSChWE1qXINjj964DRLUd1NCb++Jh4j9pXHvDk1iNoCFEt1Sbyl9rJ0bhwNArjeNnhfzvVDUvqNU00HY30nAk3rGnKkyddrc2ZZSpX1u2MngjUYb1/r+7xwNiv+jA= Received: by 10.82.191.3 with SMTP id o3mr3974173buf.1178197689877; Thu, 03 May 2007 06:08:09 -0700 (PDT) Received: by 10.82.113.4 with HTTP; Thu, 3 May 2007 06:08:09 -0700 (PDT) Message-ID: Date: Thu, 3 May 2007 09:08:09 -0400 From: "Michael Johnson" Sender: buhnux@gmail.com To: "Nick Markovich" In-Reply-To: <6232cf00705021943g5340eb5dhdfce09cf74481b30@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <6232cf00705021943g5340eb5dhdfce09cf74481b30@mail.gmail.com> X-Google-Sender-Auth: 7315a296a9fc93aa Cc: freebsd-multimedia@freebsd.org Subject: Re: multimedia/mpeg4ip compile breaks X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 May 2007 13:08:12 -0000 On 5/2/07, Nick Markovich wrote: > -- Original message by *Bruce M Simpson --* > this is with ffmpeg-devel-2007.03.31_1 installed automatically by > portupgrade. > > The following two patches seem to be needed. > > In file included from ffmpeg.h:30, > from ffmpeg.cpp:26: > /usr/local/include/ffmpeg/avcodec.h:2450: warning: `ImgReSampleContext' > is deprecated (declared at /usr/local/include/ffmpeg/avcodec.h:2447) > /usr/local/include/ffmpeg/avcodec.h:2457: warning: `ImgReSampleContext' > is deprecated (declared at /usr/local/include/ffmpeg/avcodec.h:2447) > /usr/local/include/ffmpeg/avcodec.h:2461: warning: `ImgReSampleContext' > is deprecated (declared at /usr/local/include/ffmpeg/avcodec.h:2447) > /usr/local/include/ffmpeg/avcodec.h:2463: warning: `ImgReSampleContext' > is deprecated (declared at /usr/local/include/ffmpeg/avcodec.h:2447) > ffmpeg.cpp: In function `codec_data_t* ffmpeg_create(const char*, const > char*, int, int, format_list_t*, audio_info_t*, const uint8_t*, > uint32_t, audio_vft_t*, void*)': > ffmpeg.cpp:169: error: invalid conversion from `void*' to `uint8_t*' > ffmpeg.cpp: In function `int ffmpeg_decode(codec_data_t*, > frame_timestamp_t*, int, int*, uint8_t*, uint32_t, void*)': > ffmpeg.cpp:217: warning: `avcodec_decode_audio' is deprecated (declared > at /usr/local/include/ffmpeg/avcodec.h:2743) > ffmpeg.cpp:218: warning: `avcodec_decode_audio' is deprecated (declared > at /usr/local/include/ffmpeg/avcodec.h:2743) > gmake[5]: *** [ffmpeg.lo] Error 1 > gmake[5]: Leaving directory > `/usr/ports/multimedia/mpeg4ip/work/mpeg4ip-1.5.0.1/player/plugin/audio/ffmpeg' > gmake[4]: *** [all-recursive] Error 1 > gmake[4]: Leaving directory > `/usr/ports/multimedia/mpeg4ip/work/mpeg4ip-1.5.0.1/player/plugin/audio' > gmake[3]: *** [all-recursive] Error 1 > gmake[3]: Leaving directory > `/usr/ports/multimedia/mpeg4ip/work/mpeg4ip-1.5.0.1/player/plugin' > gmake[2]: *** [all-recursive] Error 1 > gmake[2]: Leaving directory > `/usr/ports/multimedia/mpeg4ip/work/mpeg4ip-1.5.0.1/player' > gmake[1]: *** [all-recursive] Error 1 > gmake[1]: Leaving directory > `/usr/ports/multimedia/mpeg4ip/work/mpeg4ip-1.5.0.1' > gmake: *** [all] Error 2 > *** Error code 2 > > Stop in /usr/ports/multimedia/mpeg4ip. > *** Error code 1 > > Stop in /usr/ports/multimedia/mpeg4ip. > empiric# This was fixed on April 11th by mezz > -------------- next part -------------- > --- mpeg4ip-1.5.0.1/player/plugin/audio/ffmpeg/ffmpeg.cpp.orig Sun Apr > 8 16:21:30 2007 > +++ mpeg4ip-1.5.0.1/player/plugin/audio/ffmpeg/ffmpeg.cpp Sun Apr 8 > 16:22:05 2007 > @@ -166,7 +166,7 @@ > break; > } > if (userdata) { > - ffmpeg->m_c->extradata = (void *)userdata; > + ffmpeg->m_c->extradata = (uint8_t *)userdata; > ffmpeg->m_c->extradata_size = ud_size; > } > if (avcodec_open(ffmpeg->m_c, ffmpeg->m_codec) < 0) { > -------------- next part -------------- > --- mpeg4ip-1.5.0.1/player/plugin/video/ffmpeg/ffmpeg.cpp.orig Sun Apr > 8 16:22:49 2007 > +++ mpeg4ip-1.5.0.1/player/plugin/video/ffmpeg/ffmpeg.cpp Sun Apr 8 > 16:23:20 2007 > @@ -255,7 +255,7 @@ > } > break; > case CODEC_ID_SVQ3: > - ffmpeg->m_c->extradata = (void *)userdata; > + ffmpeg->m_c->extradata = (uint8_t *)userdata; > ffmpeg->m_c->extradata_size = ud_size; > if (vinfo != NULL) { > ffmpeg->m_c->width = vinfo->width; > -- End of message -- > > Thanks for your post, Bruce. I had that same error, but after applying > both of your patches, mpeg4ip compiles :) > _______________________________________________ > freebsd-multimedia@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-multimedia > To unsubscribe, send any mail to "freebsd-multimedia-unsubscribe@freebsd.org" >