Browse Source

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>
tags/n0.10
Michael Niedermayer Justin Ruggles 14 years ago
parent
commit
c9aa4cfdb1
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      avplay.c

+ 1
- 0
avplay.c View File

@@ -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;


Loading…
Cancel
Save