[FFmpeg-cvslog] ffplay: add pause audio feature in the middle of a packet

Marton Balint git at videolan.org
Sat Jun 2 17:09:17 CEST 2012


ffmpeg | branch: master | Marton Balint <cus at passwd.hu> | Mon May 28 21:42:52 2012 +0200| [a6f51de3bf5110dad301bab625f67fc2172f286d] | committer: Marton Balint

ffplay: add pause audio feature in the middle of a packet

Fixes ticket 215.

Signed-off-by: Marton Balint <cus at passwd.hu>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=a6f51de3bf5110dad301bab625f67fc2172f286d
---

 ffplay.c |    3 +++
 1 file changed, 3 insertions(+)

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;



More information about the ffmpeg-cvslog mailing list