diff options
author | Aurelien Jacobs <aurel@gnuage.org> | 2007-05-07 00:47:03 +0000 |
---|---|---|
committer | Aurelien Jacobs <aurel@gnuage.org> | 2007-05-07 00:47:03 +0000 |
commit | c53d2d90425e0abcca6ff96251bff84fc3993f80 (patch) | |
tree | 3679e62f3dbcf1b095d00e78cf08abf969931ab1 /libavcodec/h264.c | |
parent | 89ecc26188855c65245d4cc6c6b58e5d3c22edb6 (diff) | |
download | ffmpeg-streaming-c53d2d90425e0abcca6ff96251bff84fc3993f80.zip ffmpeg-streaming-c53d2d90425e0abcca6ff96251bff84fc3993f80.tar.gz |
make some parser parameters const to avoid casting const to non-const
Originally committed as revision 8921 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/h264.c')
-rw-r--r-- | libavcodec/h264.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libavcodec/h264.c b/libavcodec/h264.c index 3c0df98..92e7d2f 100644 --- a/libavcodec/h264.c +++ b/libavcodec/h264.c @@ -8039,7 +8039,7 @@ found: #ifdef CONFIG_H264_PARSER static int h264_parse(AVCodecParserContext *s, AVCodecContext *avctx, - uint8_t **poutbuf, int *poutbuf_size, + const uint8_t **poutbuf, int *poutbuf_size, const uint8_t *buf, int buf_size) { H264Context *h = s->priv_data; @@ -8051,7 +8051,7 @@ static int h264_parse(AVCodecParserContext *s, }else{ next= find_frame_end(h, buf, buf_size); - if (ff_combine_frame(pc, next, (uint8_t **)&buf, &buf_size) < 0) { + if (ff_combine_frame(pc, next, &buf, &buf_size) < 0) { *poutbuf = NULL; *poutbuf_size = 0; return buf_size; @@ -8063,7 +8063,7 @@ static int h264_parse(AVCodecParserContext *s, } } - *poutbuf = (uint8_t *)buf; + *poutbuf = buf; *poutbuf_size = buf_size; return next; } @@ -8303,7 +8303,7 @@ static int decode_frame(AVCodecContext *avctx, if(s->flags&CODEC_FLAG_TRUNCATED){ int next= find_frame_end(h, buf, buf_size); - if( ff_combine_frame(&s->parse_context, next, &buf, &buf_size) < 0 ) + if( ff_combine_frame(&s->parse_context, next, (const uint8_t **)&buf, &buf_size) < 0 ) return buf_size; //printf("next:%d buf_size:%d last_index:%d\n", next, buf_size, s->parse_context.last_index); } |