File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -277,7 +277,7 @@ impl<R: Read> Read for PackBitsReader<R> {
277277
278278#[ cfg( feature = "fax" ) ]
279279pub struct Group4Reader < R : Read > {
280- decoder : fax:: decoder:: Group4Decoder < io:: Bytes < io:: Take < R > > > ,
280+ decoder : fax:: decoder:: Group4Decoder < io:: Bytes < io:: BufReader < io :: Take < R > > > > ,
281281 line_buf : io:: Cursor < Vec < u8 > > ,
282282 height : u16 ,
283283 width : u16 ,
@@ -296,12 +296,12 @@ impl<R: Read> Group4Reader<R> {
296296
297297 Ok ( Self {
298298 decoder : fax:: decoder:: Group4Decoder :: new (
299- reader. take ( compressed_length) . bytes ( ) ,
299+ io :: BufReader :: new ( reader. take ( compressed_length) ) . bytes ( ) ,
300300 width,
301301 ) ?,
302302 line_buf : io:: Cursor :: new ( Vec :: with_capacity ( width. into ( ) ) ) ,
303- width : width ,
304- height : height ,
303+ width,
304+ height,
305305 y : 0 ,
306306 } )
307307 }
You can’t perform that action at this time.
0 commit comments