File tree Expand file tree Collapse file tree 2 files changed +15
-3
lines changed Expand file tree Collapse file tree 2 files changed +15
-3
lines changed Original file line number Diff line number Diff line change @@ -102,7 +102,9 @@ impl Context {
102
102
( * self . as_mut_ptr ( ) ) . thread_type = config. kind . into ( ) ;
103
103
( * self . as_mut_ptr ( ) ) . thread_count = config. count as c_int ;
104
104
#[ cfg( not( feature = "ffmpeg_6_0" ) ) ]
105
- { ( * self . as_mut_ptr ( ) ) . thread_safe_callbacks = if config. safe { 1 } else { 0 } ; }
105
+ {
106
+ ( * self . as_mut_ptr ( ) ) . thread_safe_callbacks = if config. safe { 1 } else { 0 } ;
107
+ }
106
108
}
107
109
}
108
110
Original file line number Diff line number Diff line change @@ -47,7 +47,12 @@ impl Filter {
47
47
if ptr. is_null ( ) {
48
48
None
49
49
} else {
50
- Some ( PadIter :: new ( ( * self . as_ptr ( ) ) . inputs , ( * self . as_ptr ( ) ) . nb_inputs as isize ) )
50
+ #[ cfg( not( feature = "ffmpeg_6_0" ) ) ]
51
+ let nb_inputs = avfilter_pad_count ( ( * self . as_ptr ( ) ) . inputs ) as isize ;
52
+ #[ cfg( feature = "ffmpeg_6_0" ) ]
53
+ let nb_inputs = ( * self . as_ptr ( ) ) . nb_inputs as isize ;
54
+
55
+ Some ( PadIter :: new ( ( * self . as_ptr ( ) ) . inputs , nb_inputs) )
51
56
}
52
57
}
53
58
}
@@ -59,7 +64,12 @@ impl Filter {
59
64
if ptr. is_null ( ) {
60
65
None
61
66
} else {
62
- Some ( PadIter :: new ( ( * self . as_ptr ( ) ) . outputs , ( * self . as_ptr ( ) ) . nb_outputs as isize ) )
67
+ #[ cfg( not( feature = "ffmpeg_6_0" ) ) ]
68
+ let nb_outputs = avfilter_pad_count ( ( * self . as_ptr ( ) ) . outputs ) as isize ;
69
+ #[ cfg( feature = "ffmpeg_6_0" ) ]
70
+ let nb_outputs = ( * self . as_ptr ( ) ) . nb_outputs as isize ;
71
+
72
+ Some ( PadIter :: new ( ( * self . as_ptr ( ) ) . outputs , nb_outputs) )
63
73
}
64
74
}
65
75
}
You can’t perform that action at this time.
0 commit comments