Commit 902bdf70 authored by Michael Niedermayer's avatar Michael Niedermayer

h264: fix warning about "uint8_t *p" and const

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 3a583603
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment