diff --git a/doc/examples/decode_video.c b/doc/examples/decode_video.c index 159765360f..dd1177b8b0 100644 --- a/doc/examples/decode_video.c +++ b/doc/examples/decode_video.c @@ -79,7 +79,7 @@ static int decode_write_frame(const char *outfilename, AVCodecContext *avctx, int main(int argc, char **argv) { const char *filename, *outfilename; - AVCodec *codec; + const AVCodec *codec; AVCodecContext *c= NULL; int frame_count; FILE *f;