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/dca_parser.c | |
parent | 89ecc26188855c65245d4cc6c6b58e5d3c22edb6 (diff) | |
download | ffmpeg-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/dca_parser.c')
-rw-r--r-- | libavcodec/dca_parser.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libavcodec/dca_parser.c b/libavcodec/dca_parser.c index 90eac203eb..6618b31565 100644 --- a/libavcodec/dca_parser.c +++ b/libavcodec/dca_parser.c @@ -94,7 +94,7 @@ static int dca_parse_init(AVCodecParserContext * s) static int dca_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) { DCAParseContext *pc1 = s->priv_data; @@ -106,13 +106,13 @@ static int dca_parse(AVCodecParserContext * s, } else { next = dca_find_frame_end(pc1, 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; } } - *poutbuf = (uint8_t *) buf; + *poutbuf = buf; *poutbuf_size = buf_size; return next; } |