[FFmpeg-cvslog] doc/examples/filtering_audio: init packet0.data

Michael Niedermayer git at videolan.org
Tue Dec 3 00:14:04 CET 2013


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Tue Dec  3 00:00:04 2013 +0100| [210a78aeb5096f746b8b788a47fd11e972b6de6a] | committer: Michael Niedermayer

doc/examples/filtering_audio: init packet0.data

Fixes use of uinitialized data and crash

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

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

 doc/examples/filtering_audio.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/doc/examples/filtering_audio.c b/doc/examples/filtering_audio.c
index 5802d90..1d66ca3 100644
--- a/doc/examples/filtering_audio.c
+++ b/doc/examples/filtering_audio.c
@@ -220,6 +220,7 @@ int main(int argc, char **argv)
         goto end;
 
     /* read all packets */
+    packet0.data = NULL;
     packet.data = NULL;
     while (1) {
         if (!packet0.data) {



More information about the ffmpeg-cvslog mailing list