diff mbox

[FFmpeg-devel] lavc/avcodec: Constify the return value of av_bitstream_filter_next().

Message ID CAB0OVGqoN+BUxHp8FFO4j+hvZq=j-S_ugXXqZX7JpaW4=6pN3A@mail.gmail.com
State Superseded
Headers show

Commit Message

Carl Eugen Hoyos Oct. 21, 2017, 7:17 p.m. UTC
Hi!

Attached patch fixes a warning when compiling with sufficiently new gcc.

Please comment, Carl Eugen
diff mbox

Patch

From bdb2ad2bc45465675e9fff7313ae5f1b062ec3e1 Mon Sep 17 00:00:00 2001
From: Carl Eugen Hoyos <ceffmpeg@gmail.com>
Date: Sat, 21 Oct 2017 20:55:01 +0200
Subject: [PATCH] lavc/avcodec: Constify the return value of
 av_bitstream_filter_next().

Fixes the following gcc warning:
libavcodec/bitstream_filter.c:39:12: warning: return 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 18c3e3e..c9031d1 100644
--- a/libavcodec/avcodec.h
+++ b/libavcodec/avcodec.h
@@ -6074,7 +6074,7 @@  void av_bitstream_filter_close(AVBitStreamFilterContext *bsf);
  * filters.
  */
 attribute_deprecated
-AVBitStreamFilter *av_bitstream_filter_next(const AVBitStreamFilter *f);
+const AVBitStreamFilter *av_bitstream_filter_next(const AVBitStreamFilter *f);
 #endif
 
 /**
-- 
1.7.10.4