aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLaurent Aimar <fenrir@videolan.org>2010-01-24 16:37:12 +0000
committerLaurent Aimar <fenrir@videolan.org>2010-01-24 16:37:12 +0000
commit0dc343d4cb618a16d00da0e5305c569d9c1933e4 (patch)
treeb8cb663cf992822dd79bf84b828417c1764e5df7
parentf1f78a9d850774efb7293128ef68d2561c40d385 (diff)
downloadffmpeg-0dc343d4cb618a16d00da0e5305c569d9c1933e4.tar.gz
Added a missing const to ff_h264_get_slice_type().
Originally committed as revision 21421 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r--libavcodec/h264.c2
-rw-r--r--libavcodec/h264.h2
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.