You've already forked FFmpeg
							
							
				mirror of
				https://github.com/FFmpeg/FFmpeg.git
				synced 2025-10-30 23:18:11 +02:00 
			
		
		
		
	avcodec/mjpegbdec: use init_get_bits8()
This commit is contained in:
		| @@ -64,10 +64,8 @@ read_header: | ||||
|     s->restart_count = 0; | ||||
|     s->mjpb_skiptosod = 0; | ||||
|  | ||||
|     if (buf_end - buf_ptr >= 1 << 28) | ||||
|         return AVERROR_INVALIDDATA; | ||||
|  | ||||
|     init_get_bits(&hgb, buf_ptr, /*buf_size*/(buf_end - buf_ptr)*8); | ||||
|     if ((ret = init_get_bits8(&hgb, buf_ptr, /*buf_size*/(buf_end - buf_ptr))) < 0) | ||||
|         return ret; | ||||
|  | ||||
|     skip_bits(&hgb, 32); /* reserved zeros */ | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user