[FFmpeg-cvslog] avplay: clear pkt_temp when pkt is freed.

Michael Niedermayer git at videolan.org
Tue Dec 20 04:18:11 CET 2011


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Wed Dec 14 00:38:23 2011 +0100| [c9aa4cfdb12dd3cff1195cb20947b7d43897eed7] | committer: Justin Ruggles

avplay: clear pkt_temp when pkt is freed.

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
Signed-off-by: Marton Balint <cus at passwd.hu>
Signed-off-by: Justin Ruggles <justin.ruggles at gmail.com>

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

 avplay.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/avplay.c b/avplay.c
index 5fcfaa6..bf1ac1b 100644
--- a/avplay.c
+++ b/avplay.c
@@ -2102,6 +2102,7 @@ static int audio_decode_frame(VideoState *is, double *pts_ptr)
         /* free the current packet */
         if (pkt->data)
             av_free_packet(pkt);
+        memset(pkt_temp, 0, sizeof(*pkt_temp));
 
         if (is->paused || is->audioq.abort_request) {
             return -1;



More information about the ffmpeg-cvslog mailing list