fftools/ffmpeg_enc: stop configuring filters from encoder flush
There is no way for a filtergraph to have all input parameters, yet not be configured, so this code should not be reachable.
This commit is contained in:
		
							parent
							
								
									f8abab673c
								
							
						
					
					
						commit
						f3e0a83e8e
					
				@ -1172,18 +1172,8 @@ void enc_flush(void)
 | 
				
			|||||||
            av_log(ost, AV_LOG_WARNING,
 | 
					            av_log(ost, AV_LOG_WARNING,
 | 
				
			||||||
                   "Finishing stream without any data written to it.\n");
 | 
					                   "Finishing stream without any data written to it.\n");
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            if (ost->filter && !fg->graph) {
 | 
					            if (!fg->graph)
 | 
				
			||||||
                if (!ifilter_has_all_input_formats(fg))
 | 
					                continue;
 | 
				
			||||||
                    continue;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
                ret = configure_filtergraph(fg);
 | 
					 | 
				
			||||||
                if (ret < 0) {
 | 
					 | 
				
			||||||
                    av_log(ost, AV_LOG_ERROR, "Error configuring filter graph\n");
 | 
					 | 
				
			||||||
                    exit_program(1);
 | 
					 | 
				
			||||||
                }
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
                of_output_packet(of, ost->pkt, ost, 1);
 | 
					 | 
				
			||||||
            }
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
            ret = enc_open(ost, NULL);
 | 
					            ret = enc_open(ost, NULL);
 | 
				
			||||||
            if (ret < 0)
 | 
					            if (ret < 0)
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user