israel-fl / bitmap2video

Generate video from Image resources, Bitmaps or a Canvas. Allows for audio multiplexing.
Apache License 2.0
89 stars 27 forks source link

When audio is null, it crashes with Null Pointer Exception #10

Closed ahmetturk closed 3 months ago

ahmetturk commented 3 years ago
muxer.mux(bitmapList)

I don't give audioTrack, so its default is null. It makes audioExtractor null. When muxAudioFrames() function is called, it crashes. Can you add an if check when calling muxAudioFrames()? Thank you.

if (audioTrack != null) {
    frameBuilder.muxAudioFrames()
}
Cheesetouched commented 2 years ago

+1

KiwanPark commented 1 year ago

+1