Merge commit '8191f960a669819db4de33a2439ded1630b8a73e'
authorClément Bœsch <u@pkh.me>
Wed, 29 Mar 2017 12:22:32 +0000 (14:22 +0200)
committerClément Bœsch <u@pkh.me>
Wed, 29 Mar 2017 12:22:32 +0000 (14:22 +0200)
* commit '8191f960a669819db4de33a2439ded1630b8a73e':
  examples/decode_video: constify the AVCodec instance

Merged-by: Clément Bœsch <u@pkh.me>
1  2 
doc/examples/decode_video.c

@@@ -79,12 -53,13 +79,12 @@@ static int decode_write_frame(const cha
  int main(int argc, char **argv)
  {
      const char *filename, *outfilename;
-     AVCodec *codec;
+     const AVCodec *codec;
      AVCodecContext *c= NULL;
 -    int frame, got_picture, len;
 +    int frame_count;
      FILE *f;
 -    AVFrame *picture;
 +    AVFrame *frame;
      uint8_t inbuf[INBUF_SIZE + AV_INPUT_BUFFER_PADDING_SIZE];
 -    char buf[1024];
      AVPacket avpkt;
  
      if (argc <= 2) {