[FFmpeg-cvslog] r21421 - in trunk/libavcodec: h264.c h264.h

fenrir subversion
Sun Jan 24 17:37:12 CET 2010


Author: fenrir
Date: Sun Jan 24 17:37:12 2010
New Revision: 21421

Log:
Added a missing const to ff_h264_get_slice_type().

Modified:
   trunk/libavcodec/h264.c
   trunk/libavcodec/h264.h

Modified: trunk/libavcodec/h264.c
==============================================================================
--- trunk/libavcodec/h264.c	Sun Jan 24 17:33:56 2010	(r21420)
+++ trunk/libavcodec/h264.c	Sun Jan 24 17:37:12 2010	(r21421)
@@ -2147,7 +2147,7 @@ static int decode_slice_header(H264Conte
     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;

Modified: trunk/libavcodec/h264.h
==============================================================================
--- trunk/libavcodec/h264.h	Sun Jan 24 17:33:56 2010	(r21420)
+++ trunk/libavcodec/h264.h	Sun Jan 24 17:37:12 2010	(r21421)
@@ -617,7 +617,7 @@ av_cold void ff_h264_free_context(H264Co
 /**
  * reconstructs bitstream slice_type.
  */
-int ff_h264_get_slice_type(H264Context *h);
+int ff_h264_get_slice_type(const H264Context *h);
 
 /**
  * allocates tables.



More information about the ffmpeg-cvslog mailing list