Merge commit '728ea23cce07467b732f538c87c13da13dd6dcf3'
authorJames Almer <jamrial@gmail.com>
Tue, 4 Apr 2017 17:41:23 +0000 (14:41 -0300)
committerJames Almer <jamrial@gmail.com>
Tue, 4 Apr 2017 17:41:23 +0000 (14:41 -0300)
* commit '728ea23cce07467b732f538c87c13da13dd6dcf3':
  examples/decode_video: switch to the new decoding API

Merged-by: James Almer <jamrial@gmail.com>
1  2 
doc/examples/decode_video.c

@@@ -165,14 -161,12 +168,12 @@@ int main(int argc, char **argv
              data_size -= ret;
  
              if (avpkt.size)
 -                decode(c, picture, &avpkt, outfilename);
 -        }
 -    }
 +                decode(c, frame, &avpkt, outfilename);
 +         }
 +     }
  
      /* flush the decoder */
-     avpkt.data = NULL;
-     avpkt.size = 0;
-     decode(c, frame, &avpkt, outfilename);
 -    decode(c, picture, NULL, outfilename);
++    decode(c, frame, NULL, outfilename);
  
      fclose(f);