diff options
author | Anton Khirnov <anton@khirnov.net> | 2016-10-19 22:56:22 +0300 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2016-11-23 15:10:10 +0300 |
commit | fee0f1de2c6a9924acb74013436dbea8f2bd1ecb (patch) | |
tree | f6b6667cf1108c43710e14f13ce91d90c7269db8 /doc/examples/decode_audio.c | |
parent | 9a38184a143a1560814b084aebe628f8df46e666 (diff) |
examples/decode_audio: flush the decoder
Diffstat (limited to 'doc/examples/decode_audio.c')
-rw-r--r-- | doc/examples/decode_audio.c | 5 |
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); |