aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2011-12-14 00:38:23 +0100
committerMarton Balint <cus@passwd.hu>2011-12-14 21:22:29 +0100
commitefe8a1ba08dd868e5a96f5759258b0733bb2004c (patch)
tree8d4f18ea5625d74fa1fe5048671d0744edcafdbe
parenta5a1e3cb8a5f554818c2e491ab4d2cad833a4556 (diff)
downloadffmpeg-efe8a1ba08dd868e5a96f5759258b0733bb2004c.tar.gz
ffplay: clear pkt_temp when pkt is freed.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> Signed-off-by: Marton Balint <cus@passwd.hu>
-rw-r--r--ffplay.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ffplay.c b/ffplay.c
index 64198c0487..f6168b5201 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;