Commit 414f733
authored
Enable multiple tracks with no audio/video. (deepmedia#61)
There's always a number of audio sources equal to the number of video sources (TranscoderOptions.java:131)
and getTrackFormat returns null when the video file had no audio track or vice versa.
So when getTrackFormat returns null for all sources we can remove the associated track
type.
If only some of the data source files have no audio or video sources then it will still throw
an exception because we can't build a valid stream with missing parts.: it is either a full
track or no track.1 parent 64ea00c commit 414f733
File tree
1 file changed
+8
-4
lines changed- lib/src/main/java/com/otaliastudios/transcoder/engine
1 file changed
+8
-4
lines changedLines changed: 8 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
119 | 119 | | |
120 | 120 | | |
121 | 121 | | |
122 | | - | |
123 | | - | |
124 | | - | |
125 | 122 | | |
126 | 123 | | |
127 | | - | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
128 | 132 | | |
129 | 133 | | |
130 | 134 | | |
| |||
0 commit comments