summaryrefslogtreecommitdiff
path: root/doc/examples/decode_audio.c
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2016-10-19 21:56:22 +0200
committerAnton Khirnov <anton@khirnov.net>2016-11-23 13:10:10 +0100
commitfee0f1de2c6a9924acb74013436dbea8f2bd1ecb (patch)
treef6b6667cf1108c43710e14f13ce91d90c7269db8 /doc/examples/decode_audio.c
parent9a38184a143a1560814b084aebe628f8df46e666 (diff)
examples/decode_audio: flush the decoder
Diffstat (limited to 'doc/examples/decode_audio.c')
-rw-r--r--doc/examples/decode_audio.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/doc/examples/decode_audio.c b/doc/examples/decode_audio.c
index e7b27d3ada..d952b4923b 100644
--- a/doc/examples/decode_audio.c
+++ b/doc/examples/decode_audio.c
@@ -179,6 +179,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);