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>
This commit is contained in:
		
							parent
							
								
									447d2e31d1
								
							
						
					
					
						commit
						02fc61a5a6
					
				
							
								
								
									
										3
									
								
								ffplay.c
									
									
									
									
									
								
							
							
						
						
									
										3
									
								
								ffplay.c
									
									
									
									
									
								
							@ -2892,8 +2892,7 @@ static int read_thread(void *arg)
 | 
				
			|||||||
                pkt->stream_index = is->video_stream;
 | 
					                pkt->stream_index = is->video_stream;
 | 
				
			||||||
                packet_queue_put(&is->videoq, pkt);
 | 
					                packet_queue_put(&is->videoq, pkt);
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
            if (is->audio_stream >= 0 &&
 | 
					            if (is->audio_stream >= 0) {
 | 
				
			||||||
                is->audio_st->codec->codec->capabilities & CODEC_CAP_DELAY) {
 | 
					 | 
				
			||||||
                av_init_packet(pkt);
 | 
					                av_init_packet(pkt);
 | 
				
			||||||
                pkt->data = NULL;
 | 
					                pkt->data = NULL;
 | 
				
			||||||
                pkt->size = 0;
 | 
					                pkt->size = 0;
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user