aboutsummaryrefslogtreecommitdiffstats
path: root/doc/examples
diff options
context:
space:
mode:
authorClément Bœsch <cboesch@gopro.com>2017-04-04 11:40:34 +0200
committerClément Bœsch <cboesch@gopro.com>2017-04-04 11:40:34 +0200
commitdd0113da3cff8d49c6283d04314599279689cfe4 (patch)
tree5d8aafc315f5c30f555996320a69358af976a970 /doc/examples
parentd1105e8f436e0b40f8cb83b8c1da09320351c2d0 (diff)
parentfee0f1de2c6a9924acb74013436dbea8f2bd1ecb (diff)
downloadffmpeg-dd0113da3cff8d49c6283d04314599279689cfe4.tar.gz
Merge commit 'fee0f1de2c6a9924acb74013436dbea8f2bd1ecb'
* commit 'fee0f1de2c6a9924acb74013436dbea8f2bd1ecb': examples/decode_audio: flush the decoder Merged-by: Clément Bœsch <cboesch@gopro.com>
Diffstat (limited to 'doc/examples')
-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 f66e577940..fb9a9af2f6 100644
--- a/doc/examples/decode_audio.c
+++ b/doc/examples/decode_audio.c
@@ -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);