[FFmpeg-cvslog] ffplay: always send zero packets to flush audio decoders

Marton Balint git at videolan.org
Mon Jul 1 02:47:45 CEST 2013


ffmpeg | branch: master | Marton Balint <cus at passwd.hu> | Sat Jun 29 14:44:30 2013 +0200| [02fc61a5a68321acb9d84bf30580cbdb3a2db1d6] | committer: Marton Balint

ffplay: always send zero packets to flush audio decoders

Zero packets are needed not for codecs with CODEC_CAP_DELAY but for
multithreaded decoders as well.

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

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

 ffplay.c |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/ffplay.c b/ffplay.c
index 37623a4..744570c 100644
--- a/ffplay.c
+++ b/ffplay.c
@@ -2892,8 +2892,7 @@ static int read_thread(void *arg)
                 pkt->stream_index = is->video_stream;
                 packet_queue_put(&is->videoq, pkt);
             }
-            if (is->audio_stream >= 0 &&
-                is->audio_st->codec->codec->capabilities & CODEC_CAP_DELAY) {
+            if (is->audio_stream >= 0) {
                 av_init_packet(pkt);
                 pkt->data = NULL;
                 pkt->size = 0;



More information about the ffmpeg-cvslog mailing list