Skip to content

Commit d32533e

Browse files
committed
add conditional
1 parent 5e96265 commit d32533e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/rust/src/hardsubx/decoder.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -720,7 +720,7 @@ pub unsafe fn process_hardsubx_linear_frames_and_normal_subs(
720720
let mut prev_begin_time_hard: i64 = 0;
721721
let mut prev_end_time_hard: i64 = 0;
722722
let mut prev_packet_pts_hard: i64 = 0;
723-
let mut ret: i32;
723+
let mut ret: i32 = 0;
724724

725725
let mut subtitle_text_hard: String;
726726
let mut prev_subtitle_text_hard: String = String::new();
@@ -746,7 +746,7 @@ pub unsafe fn process_hardsubx_linear_frames_and_normal_subs(
746746
break;
747747
}
748748

749-
if terminate_asap == 0 && !end_of_file && is_decoder_processed_enough(ctx) == 0 {
749+
if terminate_asap == 0 && !end_of_file && is_decoder_processed_enough(ctx) == 0 && ret != -102{
750750
position_sanity_check((*ctx).demux_ctx);
751751
ret = _get_more_data(ctx, &mut datalist, &stream_mode);
752752

0 commit comments

Comments
 (0)