File tree 1 file changed +20
-17
lines changed
1 file changed +20
-17
lines changed Original file line number Diff line number Diff line change @@ -746,7 +746,11 @@ pub unsafe fn process_hardsubx_linear_frames_and_normal_subs(
746
746
break ;
747
747
}
748
748
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
+ {
750
754
position_sanity_check ( ( * ctx) . demux_ctx ) ;
751
755
ret = _get_more_data ( ctx, & mut datalist, & stream_mode) ;
752
756
@@ -755,22 +759,21 @@ pub unsafe fn process_hardsubx_linear_frames_and_normal_subs(
755
759
if datalist != null :: < demuxer_data > ( ) as * mut demuxer_data {
756
760
position_sanity_check ( ( * ctx) . demux_ctx ) ;
757
761
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
+ ) ;
774
777
}
775
778
776
779
if ( * ctx) . live_stream != 0 {
You can’t perform that action at this time.
0 commit comments