aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2011-12-14 00:38:23 +0100
committerJustin Ruggles <justin.ruggles@gmail.com>2011-12-19 12:22:14 -0500
commitc9aa4cfdb12dd3cff1195cb20947b7d43897eed7 (patch)
treea97cd7cb325f35eea1ef351cedf6eeb0cecdc6cd
parent25c2d76b68641443e560451205044f95e548d988 (diff)
downloadffmpeg-c9aa4cfdb12dd3cff1195cb20947b7d43897eed7.tar.gz
avplay: clear pkt_temp when pkt is freed.
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>
-rw-r--r--avplay.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/avplay.c b/avplay.c
index 5fcfaa68e7..bf1ac1b3f2 100644
--- 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;