ffplay: clear pkt_temp when pkt is freed.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: Marton Balint <cus@passwd.hu>
(cherry picked from commit efe8a1ba08
)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
1
ffplay.c
1
ffplay.c
@@ -2145,6 +2145,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;
|
||||||
|
Reference in New Issue
Block a user