summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-03-07 00:32:02 +0100
committerMichael Niedermayer <michaelni@gmx.at>2012-03-07 00:32:02 +0100
commit902bdf706f63f40607af956e05bd6f1d14dee3f8 (patch)
tree1d9222a2643f558cc0c8c92086209cfaf1d75fa1
parent3a5836038d2a6a23f2f37010773a62088a2fcb12 (diff)
h264: fix warning about "uint8_t *p" and const
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavcodec/h264.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/h264.c b/libavcodec/h264.c
index b4cd1a4cf0..fd9142918e 100644
--- a/libavcodec/h264.c
+++ b/libavcodec/h264.c
@@ -4075,7 +4075,7 @@ static int decode_frame(AVCodecContext *avctx,
}
if(h->is_avc && buf_size >= 9 && buf[0]==1 && buf[2]==0 && (buf[4]&0xFC)==0xFC && (buf[5]&0x1F) && buf[8]==0x67){
int cnt= buf[5]&0x1f;
- uint8_t *p= buf+6;
+ const uint8_t *p= buf+6;
while(cnt--){
int nalsize= AV_RB16(p) + 2;
if(nalsize > buf_size - (p-buf) || p[2]!=0x67)