avf: fix audio writing in the output-example
authorLuca Barbato <lu_zero@gentoo.org>
Thu, 29 Mar 2012 19:00:37 +0000 (12:00 -0700)
committerLuca Barbato <lu_zero@gentoo.org>
Fri, 30 Mar 2012 00:07:19 +0000 (17:07 -0700)
commit28db30aa29e04c4f0cd43936ccea0752cfc57739
treef498de252c2a8588343eb63bc44aa84a96dc0801
parent4f7c7624c0db185c48c59d95d745ab3f7851a5b4
avf: fix audio writing in the output-example

av_init_packet does not reset data and size fields in AVPacket,
avcodec_encode_audio2 can use preallocated AVPacket.
libavformat/output-example.c