aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/cabac.h
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2004-05-18 17:09:46 +0000
committerMichael Niedermayer <michaelni@gmx.at>2004-05-18 17:09:46 +0000
commite96682e6f4c1fbddf468f9f051729332163c1db9 (patch)
tree6365d37b821ceb5e03f282ebf660f9f014903fca /libavcodec/cabac.h
parent12cccabd0fedca3846f1381971aaffd30374bede (diff)
downloadffmpeg-e96682e6f4c1fbddf468f9f051729332163c1db9.tar.gz
some of the warning fixes by (Michael Roitzsch <mroi at users dot sourceforge dot net>)
Originally committed as revision 3140 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/cabac.h')
-rw-r--r--libavcodec/cabac.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/libavcodec/cabac.h b/libavcodec/cabac.h
index 852d47ebe8..05c47363d2 100644
--- a/libavcodec/cabac.h
+++ b/libavcodec/cabac.h
@@ -37,8 +37,8 @@ typedef struct CABACContext{
uint8_t lps_range[2*64][4]; ///< rangeTabLPS
uint8_t lps_state[2*64]; ///< transIdxLPS
uint8_t mps_state[2*64]; ///< transIdxMPS
- uint8_t *bytestream_start;
- uint8_t *bytestream;
+ const uint8_t *bytestream_start;
+ const uint8_t *bytestream;
int bits_left; ///<
PutBitContext pb;
}CABACContext;
@@ -48,7 +48,7 @@ extern const uint8_t ff_h264_mps_state[64];
extern const uint8_t ff_h264_lps_state[64];
void ff_init_cabac_encoder(CABACContext *c, uint8_t *buf, int buf_size);
-void ff_init_cabac_decoder(CABACContext *c, uint8_t *buf, int buf_size);
+void ff_init_cabac_decoder(CABACContext *c, const uint8_t *buf, int buf_size);
void ff_init_cabac_states(CABACContext *c, uint8_t const (*lps_range)[4],
uint8_t const *mps_state, uint8_t const *lps_state, int state_count);