avplay: clear pkt_temp when pkt is freed.
authorMichael Niedermayer <michaelni@gmx.at>
Tue, 13 Dec 2011 23:38:23 +0000 (00:38 +0100)
committerJustin Ruggles <justin.ruggles@gmail.com>
Mon, 19 Dec 2011 17:22:14 +0000 (12:22 -0500)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: Marton Balint <cus@passwd.hu>
Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
avplay.c

index 5fcfaa6..bf1ac1b 100644 (file)
--- 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;