[FFmpeg-cvslog] h264: fix warning about "uint8_t *p" and const
Michael Niedermayer
git at videolan.org
Wed Mar 7 01:00:14 CET 2012
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Wed Mar 7 00:32:02 2012 +0100| [902bdf706f63f40607af956e05bd6f1d14dee3f8] | committer: Michael Niedermayer
h264: fix warning about "uint8_t *p" and const
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=902bdf706f63f40607af956e05bd6f1d14dee3f8
---
libavcodec/h264.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/libavcodec/h264.c b/libavcodec/h264.c
index b4cd1a4..fd91429 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)
More information about the ffmpeg-cvslog
mailing list