lavc/libvorbisdec: do not return empty frames.
Some parts of the code have been known to react badly to empty frames; they should not, but there is no need to take risks.
This commit is contained in:
		
							parent
							
								
									d5b58f678d
								
							
						
					
					
						commit
						d7ccfe58e3
					
				@ -171,7 +171,7 @@ static int oggvorbis_decode_frame(AVCodecContext *avccontext, void *data,
 | 
				
			|||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    frame->nb_samples = total_samples;
 | 
					    frame->nb_samples = total_samples;
 | 
				
			||||||
    *got_frame_ptr   = 1;
 | 
					    *got_frame_ptr   = total_samples > 0;
 | 
				
			||||||
    return avpkt->size;
 | 
					    return avpkt->size;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user