Merge commit 'fee0f1de2c6a9924acb74013436dbea8f2bd1ecb'
authorClément Bœsch <cboesch@gopro.com>
Tue, 4 Apr 2017 09:40:34 +0000 (11:40 +0200)
committerClément Bœsch <cboesch@gopro.com>
Tue, 4 Apr 2017 09:40:34 +0000 (11:40 +0200)
* commit 'fee0f1de2c6a9924acb74013436dbea8f2bd1ecb':
  examples/decode_audio: flush the decoder

Merged-by: Clément Bœsch <cboesch@gopro.com>
doc/examples/decode_audio.c

index f66e577..fb9a9af 100644 (file)
@@ -170,6 +170,11 @@ int main(int argc, char **argv)
         }
     }
 
+    /* flush the decoder */
+    pkt->data = NULL;
+    pkt->size = 0;
+    decode(c, pkt, decoded_frame, outfile);
+
     fclose(outfile);
     fclose(f);