[FFmpeg-cvslog] examples/decode_video: constify the AVCodec instance

Anton Khirnov git at videolan.org
Wed Mar 29 15:23:03 EEST 2017


ffmpeg | branch: master | Anton Khirnov <anton at khirnov.net> | Thu Oct 20 11:03:20 2016 +0200| [8191f960a669819db4de33a2439ded1630b8a73e] | committer: Anton Khirnov

examples/decode_video: constify the AVCodec instance

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=8191f960a669819db4de33a2439ded1630b8a73e
---

 doc/examples/decode_video.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/doc/examples/decode_video.c b/doc/examples/decode_video.c
index 20d11da..4036dbe 100644
--- a/doc/examples/decode_video.c
+++ b/doc/examples/decode_video.c
@@ -53,7 +53,7 @@ static void pgm_save(unsigned char *buf, int wrap, int xsize, int ysize,
 int main(int argc, char **argv)
 {
     const char *filename, *outfilename;
-    AVCodec *codec;
+    const AVCodec *codec;
     AVCodecContext *c= NULL;
     int frame, got_picture, len;
     FILE *f;



More information about the ffmpeg-cvslog mailing list