You've already forked FFmpeg
							
							
				mirror of
				https://github.com/FFmpeg/FFmpeg.git
				synced 2025-10-30 23:18:11 +02:00 
			
		
		
		
	pp: use av_clip_uint8 instead of a custom implementation.
This commit is contained in:
		| @@ -28,6 +28,7 @@ | ||||
|  | ||||
| #include <string.h> | ||||
| #include "libavutil/avutil.h" | ||||
| #include "libavutil/intmath.h" | ||||
| #include "libavutil/log.h" | ||||
| #include "postprocess.h" | ||||
|  | ||||
| @@ -75,10 +76,8 @@ | ||||
| //filters on | ||||
| //#define COMPILE_TIME_MODE 0x77 | ||||
|  | ||||
| static inline int CLIP(int a){ | ||||
|     if(a&256) return ((a)>>31)^(-1); | ||||
|     else      return a; | ||||
| } | ||||
| #define CLIP av_clip_uint8 | ||||
|  | ||||
| /** | ||||
|  * Postprocessing filter. | ||||
|  */ | ||||
|   | ||||
		Reference in New Issue
	
	Block a user