Skip to content

Commit ceeff56

Browse files
committed
style fixes
1 parent d32533e commit ceeff56

File tree

1 file changed

+20
-17
lines changed

1 file changed

+20
-17
lines changed

src/rust/src/hardsubx/decoder.rs

+20-17
Original file line numberDiff line numberDiff line change
@@ -746,7 +746,11 @@ 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 && ret != -102{
749+
if terminate_asap == 0
750+
&& !end_of_file
751+
&& is_decoder_processed_enough(ctx) == 0
752+
&& ret != -102
753+
{
750754
position_sanity_check((*ctx).demux_ctx);
751755
ret = _get_more_data(ctx, &mut datalist, &stream_mode);
752756

@@ -755,22 +759,21 @@ pub unsafe fn process_hardsubx_linear_frames_and_normal_subs(
755759
if datalist != null::<demuxer_data>() as *mut demuxer_data {
756760
position_sanity_check((*ctx).demux_ctx);
757761

758-
if (*ctx).multiprogram == 0 {
759-
if dec_ctx == null::<lib_cc_decode>() as *mut lib_cc_decode
760-
|| hard_ctx.dec_sub.start_time >= (*dec_ctx).dec_sub.start_time
761-
|| status < 0
762-
{
763-
process_non_multiprogram_general_loop(
764-
ctx,
765-
&mut datalist,
766-
&mut datanode,
767-
&mut dec_ctx,
768-
&mut enc_ctx,
769-
&mut min_pts,
770-
ret,
771-
&mut caps,
772-
);
773-
}
762+
if (*ctx).multiprogram == 0
763+
&& dec_ctx == null::<lib_cc_decode>() as *mut lib_cc_decode
764+
|| hard_ctx.dec_sub.start_time >= (*dec_ctx).dec_sub.start_time
765+
|| status < 0
766+
{
767+
process_non_multiprogram_general_loop(
768+
ctx,
769+
&mut datalist,
770+
&mut datanode,
771+
&mut dec_ctx,
772+
&mut enc_ctx,
773+
&mut min_pts,
774+
ret,
775+
&mut caps,
776+
);
774777
}
775778

776779
if (*ctx).live_stream != 0 {

0 commit comments

Comments
 (0)