Commit 02fc61a5 authored by Marton Balint's avatar 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: 's avatarMarton Balint <cus@passwd.hu>
parent 447d2e31
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment