[FFmpeg-devel] [PATCH 2/4] ffplay: add pause audio feature in the middle of a packet

Marton Balint cus at passwd.hu
Tue May 29 22:57:24 CEST 2012


Fixes ticket 215.

Signed-off-by: Marton Balint <cus at passwd.hu>
---
 ffplay.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/ffplay.c b/ffplay.c
index 708dab8..44ae931 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;
-- 
1.7.3.4



More information about the ffmpeg-devel mailing list