diff options
author | Marton Balint <cus@passwd.hu> | 2013-06-29 14:44:30 +0200 |
---|---|---|
committer | Marton Balint <cus@passwd.hu> | 2013-07-01 00:24:03 +0200 |
commit | 02fc61a5a68321acb9d84bf30580cbdb3a2db1d6 (patch) | |
tree | 2ea797e12049ef3ac221d2985317021ec41b58ec /ffplay.c | |
parent | 447d2e31d167ebd6856c492f762a98aa56df8b58 (diff) | |
download | ffmpeg-streaming-02fc61a5a68321acb9d84bf30580cbdb3a2db1d6.zip ffmpeg-streaming-02fc61a5a68321acb9d84bf30580cbdb3a2db1d6.tar.gz |
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@passwd.hu>
Diffstat (limited to 'ffplay.c')
-rw-r--r-- | ffplay.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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; |