From: Laurent Aimar Date: Sun, 24 Jan 2010 16:37:12 +0000 (+0000) Subject: Added a missing const to ff_h264_get_slice_type(). X-Git-Tag: v0.6~1687 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0dc343d4cb618a16d00da0e5305c569d9c1933e4;p=platform%2Fupstream%2Flibav.git Added a missing const to ff_h264_get_slice_type(). Originally committed as revision 21421 to svn://svn.ffmpeg.org/ffmpeg/trunk --- diff --git a/libavcodec/h264.c b/libavcodec/h264.c index 08745d8..61567eb 100644 --- a/libavcodec/h264.c +++ b/libavcodec/h264.c @@ -2147,7 +2147,7 @@ static int decode_slice_header(H264Context *h, H264Context *h0){ return 0; } -int ff_h264_get_slice_type(H264Context *h) +int ff_h264_get_slice_type(const H264Context *h) { switch (h->slice_type) { case FF_P_TYPE: return 0; diff --git a/libavcodec/h264.h b/libavcodec/h264.h index b791558..e770ab8 100644 --- a/libavcodec/h264.h +++ b/libavcodec/h264.h @@ -617,7 +617,7 @@ av_cold void ff_h264_free_context(H264Context *h); /** * reconstructs bitstream slice_type. */ -int ff_h264_get_slice_type(H264Context *h); +int ff_h264_get_slice_type(const H264Context *h); /** * allocates tables.