Commit c9aa4cfd authored by Michael Niedermayer's avatar Michael Niedermayer Committed by Justin Ruggles

avplay: clear pkt_temp when pkt is freed.

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
Signed-off-by: 's avatarMarton Balint <cus@passwd.hu>
Signed-off-by: 's avatarJustin Ruggles <justin.ruggles@gmail.com>
parent 25c2d76b
...@@ -2102,6 +2102,7 @@ static int audio_decode_frame(VideoState *is, double *pts_ptr) ...@@ -2102,6 +2102,7 @@ static int audio_decode_frame(VideoState *is, double *pts_ptr)
/* free the current packet */ /* free the current packet */
if (pkt->data) if (pkt->data)
av_free_packet(pkt); av_free_packet(pkt);
memset(pkt_temp, 0, sizeof(*pkt_temp));
if (is->paused || is->audioq.abort_request) { if (is->paused || is->audioq.abort_request) {
return -1; return -1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment