ffplay: add pause audio feature in the middle of a packet
Fixes ticket 215. Signed-off-by: Marton Balint <cus@passwd.hu>
This commit is contained in:
parent
d872e11300
commit
a6f51de3bf
1 changed files with 3 additions and 0 deletions
3
ffplay.c
3
ffplay.c
|
|
@ -2077,6 +2077,9 @@ static int audio_decode_frame(VideoState *is, double *pts_ptr)
|
|||
} else
|
||||
avcodec_get_frame_defaults(is->frame);
|
||||
|
||||
if (is->paused)
|
||||
return -1;
|
||||
|
||||
if (flush_complete)
|
||||
break;
|
||||
new_packet = 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue