aboutsummaryrefslogtreecommitdiffstats
path: root/ffplay.c
diff options
context:
space:
mode:
authorMarton Balint <cus@passwd.hu>2012-05-28 21:42:52 +0200
committerMarton Balint <cus@passwd.hu>2012-05-29 22:41:50 +0200
commita6f51de3bf5110dad301bab625f67fc2172f286d (patch)
treecbfd7d96c111802fe9678f44e8558711f9d5a64d /ffplay.c
parentd872e1130092ba18f54131511d7ea64666878459 (diff)
downloadffmpeg-a6f51de3bf5110dad301bab625f67fc2172f286d.tar.gz
ffplay: add pause audio feature in the middle of a packet
Fixes ticket 215. Signed-off-by: Marton Balint <cus@passwd.hu>
Diffstat (limited to 'ffplay.c')
-rw-r--r--ffplay.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/ffplay.c b/ffplay.c
index 708dab8d63..44ae931601 100644
--- a/ffplay.c
+++ b/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;