From patchwork Thu Mar 16 21:38:24 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Carl Eugen Hoyos X-Patchwork-Id: 2959 Delivered-To: ffmpegpatchwork@gmail.com Received: by 10.103.50.79 with SMTP id y76csp942811vsy; Thu, 16 Mar 2017 14:38:43 -0700 (PDT) X-Received: by 10.223.139.154 with SMTP id o26mr9582460wra.56.1489700323108; Thu, 16 Mar 2017 14:38:43 -0700 (PDT) Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id 35si8285778wre.175.2017.03.16.14.38.42; Thu, 16 Mar 2017 14:38:43 -0700 (PDT) Received-SPF: pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) client-ip=79.124.17.100; Authentication-Results: mx.google.com; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 8FDD068831B; Thu, 16 Mar 2017 23:38:17 +0200 (EET) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from vie01a-dmta-pe03-2.mx.upcmail.net (vie01a-dmta-pe03-2.mx.upcmail.net [62.179.121.161]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 1CB606808E5 for ; Thu, 16 Mar 2017 23:38:11 +0200 (EET) Received: from [172.31.216.43] (helo=vie01a-pemc-psmtp-pe01) by vie01a-dmta-pe03.mx.upcmail.net with esmtp (Exim 4.87) (envelope-from ) id 1cod6J-0007gb-I1 for ffmpeg-devel@ffmpeg.org; Thu, 16 Mar 2017 22:38:27 +0100 Received: from [192.168.1.3] ([80.110.112.223]) by vie01a-pemc-psmtp-pe01 with SMTP @ mailcloud.upcmail.net id wleQ1u00c4pF24001leRPG; Thu, 16 Mar 2017 22:38:25 +0100 X-SourceIP: 80.110.112.223 From: Carl Eugen Hoyos To: FFmpeg development discussions and patches Date: Thu, 16 Mar 2017 22:38:24 +0100 User-Agent: KMail/1.9.10 MIME-Version: 1.0 Message-Id: <201703162238.24314.cehoyos@ag.or.at> Subject: [FFmpeg-devel] [PATCH]lavc/avcodec: Constify AVBitStreamFilter* in AVBitStreamFilterContext struct. X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: FFmpeg development discussions and patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: FFmpeg development discussions and patches Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Hi! Attached patch fixes one of two remaining warnings when compiling bitstream_filter.c. Please comment, Carl Eugen From 7fb60d42ee2137d1181ad0f6e214df87ed06400e Mon Sep 17 00:00:00 2001 From: Carl Eugen Hoyos Date: Thu, 16 Mar 2017 22:31:44 +0100 Subject: [PATCH] lavc/avcodec: Constify AVBitStreamFilter* in AVBitStreamFilterContext struct. Fixes a gcc warning: libavcodec/bitstream_filter.c:71:20: warning: assignment discards 'const' qualifier from pointer target type --- libavcodec/avcodec.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h index 1923c96..8774718 100644 --- a/libavcodec/avcodec.h +++ b/libavcodec/avcodec.h @@ -5764,7 +5764,7 @@ int av_get_audio_frame_duration2(AVCodecParameters *par, int frame_bytes); #if FF_API_OLD_BSF typedef struct AVBitStreamFilterContext { void *priv_data; - struct AVBitStreamFilter *filter; + const struct AVBitStreamFilter *filter; AVCodecParserContext *parser; struct AVBitStreamFilterContext *next; /**