You've already forked FFmpeg
							
							
				mirror of
				https://github.com/FFmpeg/FFmpeg.git
				synced 2025-10-30 23:18:11 +02:00 
			
		
		
		
	av_memcpy_backptr: avoid an infinite loop for back = 0
CC:libav-stable@libav.org
This commit is contained in:
		| @@ -252,6 +252,9 @@ static void fill32(uint8_t *dst, int len) | ||||
| void av_memcpy_backptr(uint8_t *dst, int back, int cnt) | ||||
| { | ||||
|     const uint8_t *src = &dst[-back]; | ||||
|     if (!back) | ||||
|         return; | ||||
|  | ||||
|     if (back == 1) { | ||||
|         memset(dst, *src, cnt); | ||||
|     } else if (back == 2) { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user