From 0b848cb01be9347c999470c654429a39b82ec342 Mon Sep 17 00:00:00 2001 From: Saxon Date: Tue, 7 Jan 2020 13:12:15 +1030 Subject: [PATCH] codec/mjpeg/jpeg.go: no longer need to convert dri to uint16. --- codec/mjpeg/jpeg.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/codec/mjpeg/jpeg.go b/codec/mjpeg/jpeg.go index 1fec0d89..4e681e76 100644 --- a/codec/mjpeg/jpeg.go +++ b/codec/mjpeg/jpeg.go @@ -320,7 +320,7 @@ func writeHeader(p []byte, _type, width, height, nbqTab int, dri uint16, qtable if dri != 0 { binary.BigEndian.PutUint16(p[idx:], 0xff00|codeDRI) binary.BigEndian.PutUint16(p[idx+2:], 4) - binary.BigEndian.PutUint16(p[idx+4:], uint16(dri)) + binary.BigEndian.PutUint16(p[idx+4:], dri) idx += 6 }