OSDN Git Service

examples/encode_video: constify the AVCodec instance
authorAnton Khirnov <anton@khirnov.net>
Thu, 20 Oct 2016 09:03:20 +0000 (11:03 +0200)
committerAnton Khirnov <anton@khirnov.net>
Wed, 2 Nov 2016 09:18:34 +0000 (10:18 +0100)
doc/examples/encode_video.c

index ca93472..c5f3853 100644 (file)
@@ -37,7 +37,7 @@
 int main(int argc, char **argv)
 {
     const char *filename;
-    AVCodec *codec;
+    const AVCodec *codec;
     AVCodecContext *c= NULL;
     int i, ret, x, y, got_output;
     FILE *f;