mirror of
				https://github.com/nyanmisaka/ffmpeg-rockchip.git
				synced 2025-10-31 20:42:49 +08:00 
			
		
		
		
	westwood_vqa: set video stream duration
Signed-off-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
		 Paul B Mahol
					Paul B Mahol
				
			
				
					committed by
					
						 Michael Niedermayer
						Michael Niedermayer
					
				
			
			
				
	
			
			
			 Michael Niedermayer
						Michael Niedermayer
					
				
			
						parent
						
							98ca4d217d
						
					
				
				
					commit
					5ca595facb
				
			| @@ -112,6 +112,8 @@ static int wsvqa_read_header(AVFormatContext *s) | ||||
|     st->codec->width = AV_RL16(&header[6]); | ||||
|     st->codec->height = AV_RL16(&header[8]); | ||||
|     fps = header[12]; | ||||
|     st->nb_frames = | ||||
|     st->duration  = AV_RL16(&header[4]); | ||||
|     if (fps < 1 || fps > 30) { | ||||
|         av_log(s, AV_LOG_ERROR, "invalid fps: %d\n", fps); | ||||
|         return AVERROR_INVALIDDATA; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user