summaryrefslogtreecommitdiff
path: root/doc/examples/decode_audio.c
diff options
context:
space:
mode:
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);