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

Michael Niedermayer git at videolan.org
Wed Dec 14 22:38:03 CET 2011


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

ffplay: 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>

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

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

diff --git a/ffplay.c b/ffplay.c
index 64198c0..f6168b5 100644
--- a/ffplay.c
+++ b/ffplay.c
@@ -2145,6 +2145,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