avcodec_find_best_pix_fmt() needs a 64bit mask as there are more than 32 pix_fmts.
Originally committed as revision 15271 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
		
							parent
							
								
									047599a4ba
								
							
						
					
					
						commit
						9d21494776
					
				| @ -2444,7 +2444,7 @@ int avcodec_get_pix_fmt_loss(int dst_pix_fmt, int src_pix_fmt, | |||||||
|  * @param[out] loss_ptr Combination of flags informing you what kind of losses will occur. |  * @param[out] loss_ptr Combination of flags informing you what kind of losses will occur. | ||||||
|  * @return The best pixel format to convert to or -1 if none was found. |  * @return The best pixel format to convert to or -1 if none was found. | ||||||
|  */ |  */ | ||||||
| int avcodec_find_best_pix_fmt(int pix_fmt_mask, int src_pix_fmt, | int avcodec_find_best_pix_fmt(int64_t pix_fmt_mask, int src_pix_fmt, | ||||||
|                               int has_alpha, int *loss_ptr); |                               int has_alpha, int *loss_ptr); | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
|  | |||||||
| @ -772,7 +772,7 @@ static int avg_bits_per_pixel(int pix_fmt) | |||||||
|     return bits; |     return bits; | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| static int avcodec_find_best_pix_fmt1(int pix_fmt_mask, | static int avcodec_find_best_pix_fmt1(int64_t pix_fmt_mask, | ||||||
|                                       int src_pix_fmt, |                                       int src_pix_fmt, | ||||||
|                                       int has_alpha, |                                       int has_alpha, | ||||||
|                                       int loss_mask) |                                       int loss_mask) | ||||||
| @ -797,7 +797,7 @@ static int avcodec_find_best_pix_fmt1(int pix_fmt_mask, | |||||||
|     return dst_pix_fmt; |     return dst_pix_fmt; | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| int avcodec_find_best_pix_fmt(int pix_fmt_mask, int src_pix_fmt, | int avcodec_find_best_pix_fmt(int64_t pix_fmt_mask, int src_pix_fmt, | ||||||
|                               int has_alpha, int *loss_ptr) |                               int has_alpha, int *loss_ptr) | ||||||
| { | { | ||||||
|     int dst_pix_fmt, loss_mask, i; |     int dst_pix_fmt, loss_mask, i; | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user