summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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.