From 0dc343d4cb618a16d00da0e5305c569d9c1933e4 Mon Sep 17 00:00:00 2001 From: Laurent Aimar Date: Sun, 24 Jan 2010 16:37:12 +0000 Subject: [PATCH] Added a missing const to ff_h264_get_slice_type(). Originally committed as revision 21421 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/h264.c | 2 +- libavcodec/h264.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libavcodec/h264.c b/libavcodec/h264.c index 08745d8e0c..61567eb6b7 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 b79155828b..e770ab8e54 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.