diff --git a/doc/examples/encode_video.c b/doc/examples/encode_video.c index 71c8c0bbee..265b529165 100644 --- a/doc/examples/encode_video.c +++ b/doc/examples/encode_video.c @@ -39,7 +39,7 @@ int main(int argc, char **argv) { const char *filename, *codec_name; - AVCodec *codec; + const AVCodec *codec; AVCodecContext *c= NULL; int i, ret, x, y, got_output; FILE *f;