File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -460,7 +460,7 @@ impl<R: Read> Decoder<R> {
460
460
& mut huffman,
461
461
self . dc_huffman_tables [ scan. dc_table_indices [ i] ] . as_ref ( ) ,
462
462
self . ac_huffman_tables [ scan. ac_table_indices [ i] ] . as_ref ( ) ,
463
- & scan. spectral_selection ,
463
+ scan. spectral_selection . clone ( ) ,
464
464
scan. successive_approximation_low ,
465
465
& mut eob_run,
466
466
& mut dc_predictors[ i] ) ?;
@@ -547,7 +547,7 @@ fn decode_block<R: Read>(reader: &mut R,
547
547
huffman : & mut HuffmanDecoder ,
548
548
dc_table : Option < & HuffmanTable > ,
549
549
ac_table : Option < & HuffmanTable > ,
550
- spectral_selection : & Range < u8 > ,
550
+ spectral_selection : Range < u8 > ,
551
551
successive_approximation_low : u8 ,
552
552
eob_run : & mut u16 ,
553
553
dc_predictor : & mut i16 ) -> Result < ( ) > {
You can’t perform that action at this time.
0 commit comments