File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -95,15 +95,15 @@ impl CompressStream {
95
95
& mut nop_callback,
96
96
) ;
97
97
if ret != 0 {
98
- if available_out == 0 {
99
- self . result = BrotliStreamResult :: NeedsMoreOutput as i32 ;
100
- self . last_input_offset = input_offset;
101
- Ok ( output. into_boxed_slice ( ) )
102
- } else if available_in == 0 {
98
+ if available_in == 0 {
103
99
output. truncate ( output_offset) ;
104
100
self . result = BrotliStreamResult :: NeedsMoreInput as i32 ;
105
101
self . last_input_offset = input. len ( ) ;
106
102
Ok ( output. into_boxed_slice ( ) )
103
+ } else if available_out == 0 {
104
+ self . result = BrotliStreamResult :: NeedsMoreOutput as i32 ;
105
+ self . last_input_offset = input_offset;
106
+ Ok ( output. into_boxed_slice ( ) )
107
107
} else {
108
108
self . result = -1 ;
109
109
self . last_input_offset = 0 ;
You can’t perform that action at this time.
0 commit comments