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

Michael Niedermayer git at videolan.org
Fri Dec 16 15:33:46 CET 2011


ffmpeg | branch: release/0.9 | Michael Niedermayer <michaelni at gmx.at> | Wed Dec 14 00:38:23 2011 +0100| [eee78ef30daca0ed40a7ef21c749fd468667c09b] | committer: Michael Niedermayer

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>
(cherry picked from commit efe8a1ba08dd868e5a96f5759258b0733bb2004c)

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

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

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

diff --git a/ffplay.c b/ffplay.c
index b68f798..947a84b 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