bitmap2video icon indicating copy to clipboard operation
bitmap2video copied to clipboard

When audio is null, it crashes with Null Pointer Exception

Open ahmetturk opened this issue 4 years ago • 1 comments

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()
}

ahmetturk avatar Oct 02 '20 06:10 ahmetturk

+1

Cheesetouched avatar Aug 25 '21 08:08 Cheesetouched

+1

KiwanPark avatar Feb 15 '23 02:02 KiwanPark