You've already forked FFmpeg
							
							
				mirror of
				https://github.com/FFmpeg/FFmpeg.git
				synced 2025-10-30 23:18:11 +02:00 
			
		
		
		
	smacker: read escape codes in single get_bits() call
Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
		| @@ -231,12 +231,9 @@ static int smacker_decode_header_tree(SmackVContext *smk, GetBitContext *gb, int | |||||||
|         av_log(smk->avctx, AV_LOG_ERROR, "Skipping high bytes tree\n"); |         av_log(smk->avctx, AV_LOG_ERROR, "Skipping high bytes tree\n"); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     escapes[0]  = get_bits(gb, 8); |     escapes[0]  = get_bits(gb, 16); | ||||||
|     escapes[0] |= get_bits(gb, 8) << 8; |     escapes[1]  = get_bits(gb, 16); | ||||||
|     escapes[1]  = get_bits(gb, 8); |     escapes[2]  = get_bits(gb, 16); | ||||||
|     escapes[1] |= get_bits(gb, 8) << 8; |  | ||||||
|     escapes[2]  = get_bits(gb, 8); |  | ||||||
|     escapes[2] |= get_bits(gb, 8) << 8; |  | ||||||
|  |  | ||||||
|     last[0] = last[1] = last[2] = -1; |     last[0] = last[1] = last[2] = -1; | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user