You've already forked FFmpeg
							
							
				mirror of
				https://github.com/FFmpeg/FFmpeg.git
				synced 2025-10-30 23:18:11 +02:00 
			
		
		
		
	postproc: fix unaligned access
Based on59074310by Andreas Cadhalpun. Fixes ticket #5259. (cherry picked from commit2aa21eec1a) Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
		
				
					committed by
					
						 Michael Niedermayer
						Michael Niedermayer
					
				
			
			
				
	
			
			
			
						parent
						
							23ef5996a5
						
					
				
				
					commit
					1e9aa7907e
				
			| @@ -973,7 +973,7 @@ void  pp_postprocess(const uint8_t * src[3], const int srcStride[3], | ||||
|         int i; | ||||
|         const int count= FFMAX(mbHeight * absQPStride, mbWidth); | ||||
|         for(i=0; i<(count>>2); i++){ | ||||
|             ((uint32_t*)c->stdQPTable)[i] = (((const uint32_t*)QP_store)[i]>>1) & 0x7F7F7F7F; | ||||
|             AV_WN32(c->stdQPTable + (i<<2), AV_RN32(QP_store + (i<<2)) >> 1 & 0x7F7F7F7F); | ||||
|         } | ||||
|         for(i<<=2; i<count; i++){ | ||||
|             c->stdQPTable[i] = QP_store[i]>>1; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user