You've already forked FFmpeg
							
							
				mirror of
				https://github.com/FFmpeg/FFmpeg.git
				synced 2025-10-30 23:18:11 +02:00 
			
		
		
		
	dcaenc: use put_sbits()
Reviewed-by: Michael Niedermayer <michaelni@gmx.at> Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
		| @@ -847,8 +847,7 @@ static void put_subframe_samples(DCAEncContext *c, int ss, int band, int ch) | ||||
|         int i; | ||||
|         for (i = 0; i < 8; i++) { | ||||
|             int bits = bit_consumption[c->abits[band][ch]] / 16; | ||||
|             int32_t mask = (1 << bits) - 1; | ||||
|             put_bits(&c->pb, bits, c->quantized[ss * 8 + i][band][ch] & mask); | ||||
|             put_sbits(&c->pb, bits, c->quantized[ss * 8 + i][band][ch]); | ||||
|         } | ||||
|     } | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user