[FFmpeg-cvslog] Merge commit 'fee0f1de2c6a9924acb74013436dbea8f2bd1ecb'

Clément Bœsch git at videolan.org
Tue Apr 4 12:40:08 EEST 2017


ffmpeg | branch: master | Clément Bœsch <cboesch at gopro.com> | Tue Apr  4 11:40:34 2017 +0200| [dd0113da3cff8d49c6283d04314599279689cfe4] | committer: Clément Bœsch

Merge commit 'fee0f1de2c6a9924acb74013436dbea8f2bd1ecb'

* commit 'fee0f1de2c6a9924acb74013436dbea8f2bd1ecb':
  examples/decode_audio: flush the decoder

Merged-by: Clément Bœsch <cboesch at gopro.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=dd0113da3cff8d49c6283d04314599279689cfe4
---

 doc/examples/decode_audio.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/doc/examples/decode_audio.c b/doc/examples/decode_audio.c
index f66e577..fb9a9af 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);
 


======================================================================




More information about the ffmpeg-cvslog mailing list