diff options
author | Clément Bœsch <cboesch@gopro.com> | 2017-04-04 11:40:34 +0200 |
---|---|---|
committer | Clément Bœsch <cboesch@gopro.com> | 2017-04-04 11:40:34 +0200 |
commit | dd0113da3cff8d49c6283d04314599279689cfe4 (patch) | |
tree | 5d8aafc315f5c30f555996320a69358af976a970 /doc/examples | |
parent | d1105e8f436e0b40f8cb83b8c1da09320351c2d0 (diff) | |
parent | fee0f1de2c6a9924acb74013436dbea8f2bd1ecb (diff) | |
download | ffmpeg-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.c | 5 |
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); |