You've already forked FFmpeg
							
							
				mirror of
				https://github.com/FFmpeg/FFmpeg.git
				synced 2025-10-30 23:18:11 +02:00 
			
		
		
		
	Fix yuv4mpeg parsing of 'mono16' files.
'mono' came before 'mono16' in the list of colorspace alternatives, causing files of the latter type to be parsed as the former.
This commit is contained in:
		
				
					committed by
					
						 Carl Eugen Hoyos
						Carl Eugen Hoyos
					
				
			
			
				
	
			
			
			
						parent
						
							2f48dff455
						
					
				
				
					commit
					71311d697a
				
			| @@ -366,10 +366,10 @@ static int yuv4_read_header(AVFormatContext *s) | |||||||
|                 return -1; |                 return -1; | ||||||
|             } else if (strncmp("444", tokstart, 3) == 0) { |             } else if (strncmp("444", tokstart, 3) == 0) { | ||||||
|                 pix_fmt = PIX_FMT_YUV444P; |                 pix_fmt = PIX_FMT_YUV444P; | ||||||
|             } else if (strncmp("mono", tokstart, 4) == 0) { |  | ||||||
|                 pix_fmt = PIX_FMT_GRAY8; |  | ||||||
|             } else if (strncmp("mono16", tokstart, 6) == 0) { |             } else if (strncmp("mono16", tokstart, 6) == 0) { | ||||||
|                 pix_fmt = PIX_FMT_GRAY16; |                 pix_fmt = PIX_FMT_GRAY16; | ||||||
|  |             } else if (strncmp("mono", tokstart, 4) == 0) { | ||||||
|  |                 pix_fmt = PIX_FMT_GRAY8; | ||||||
|             } else { |             } else { | ||||||
|                 av_log(s, AV_LOG_ERROR, "YUV4MPEG stream contains an unknown " |                 av_log(s, AV_LOG_ERROR, "YUV4MPEG stream contains an unknown " | ||||||
|                        "pixel format.\n"); |                        "pixel format.\n"); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user