ffplay: only quit from audio_decode_frame before decoding when paused
This way the audio clock is updated to a proper value even when the video is paused. Signed-off-by: Marton Balint <cus@passwd.hu>
This commit is contained in:
parent
48e43a1999
commit
3070600d9b
2
ffplay.c
2
ffplay.c
@ -2196,7 +2196,7 @@ static int audio_decode_frame(VideoState *is)
|
|||||||
av_free_packet(pkt);
|
av_free_packet(pkt);
|
||||||
memset(pkt_temp, 0, sizeof(*pkt_temp));
|
memset(pkt_temp, 0, sizeof(*pkt_temp));
|
||||||
|
|
||||||
if (is->paused || is->audioq.abort_request) {
|
if (is->audioq.abort_request) {
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user