[FFmpeg-devel] [PATCH 2/2] ffplay: clear pkt_temp when pkt is freed.

Michael Niedermayer michaelni at gmx.at
Wed Dec 14 00:38:23 CET 2011


Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
---
 ffplay.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/ffplay.c b/ffplay.c
index 29b1a48..12e633a 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;
-- 
1.7.5.4



More information about the ffmpeg-devel mailing list