You've already forked FFmpeg
							
							
				mirror of
				https://github.com/FFmpeg/FFmpeg.git
				synced 2025-10-30 23:18:11 +02:00 
			
		
		
		
	Use AV_RN32 for an unaligned read in the mxg demuxer.
Fixes ticket #2707.
This commit is contained in:
		| @@ -74,7 +74,7 @@ static int mxg_read_header(AVFormatContext *s) | ||||
| static uint8_t* mxg_find_startmarker(uint8_t *p, uint8_t *end) | ||||
| { | ||||
|     for (; p < end - 3; p += 4) { | ||||
|         uint32_t x = *(uint32_t*)p; | ||||
|         uint32_t x = AV_RN32(p); | ||||
|  | ||||
|         if (x & (~(x+0x01010101)) & 0x80808080) { | ||||
|             if (p[0] == 0xff) { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user