# HG changeset patch # User michael # Date 1201832779 0 # Node ID 1087db4b4d78846cd04efb517262364398fdd833 # Parent b2c3654e562da9a851715d40acd31edc2ae41ef4 The buffer passed into the decoder should be const. diff -r b2c3654e562d -r 1087db4b4d78 avcodec.h --- a/avcodec.h Fri Feb 01 01:40:46 2008 +0000 +++ b/avcodec.h Fri Feb 01 02:26:19 2008 +0000 @@ -2200,7 +2200,7 @@ int (*encode)(AVCodecContext *, uint8_t *buf, int buf_size, void *data); int (*close)(AVCodecContext *); int (*decode)(AVCodecContext *, void *outdata, int *outdata_size, - uint8_t *buf, int buf_size); + const uint8_t *buf, int buf_size); int capabilities; struct AVCodec *next; void (*flush)(AVCodecContext *);