mirror of
				https://github.com/nyanmisaka/ffmpeg-rockchip.git
				synced 2025-10-31 12:36:41 +08:00 
			
		
		
		
	lavf/mkv: Only skip prores header if the packet is large enough.
Fixes a possible endless loop.
This commit is contained in:
		| @@ -1575,7 +1575,7 @@ static void mkv_write_block(AVFormatContext *s, AVIOContext *pb, | ||||
|     } else | ||||
|         data = pkt->data; | ||||
|  | ||||
|     if (codec->codec_id == AV_CODEC_ID_PRORES) { | ||||
|     if (codec->codec_id == AV_CODEC_ID_PRORES && size >= 8) { | ||||
|         /* Matroska specification requires to remove the first QuickTime atom | ||||
|          */ | ||||
|         size  -= 8; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Carl Eugen Hoyos
					Carl Eugen Hoyos