bytedeco/javacv

RecordActivity sample issue - ArrayIndexOutOfBoundsException

Open

#689 opened on May 5, 2017

View on GitHub
 (2 comments) (0 reactions) (0 assignees)Java (1,583 forks)batch import
bughelp wanted

Repository metrics

Stars
 (6,985 stars)
PR merge metrics
 (No merged PRs in 30d)

Description

Sample example RecordActivity crashes when I stop recording a video:

FATAL EXCEPTION: main
Process: ffmpegrecorder, PID: 23433
java.lang.ArrayIndexOutOfBoundsException: length=300; index=-1
    at com.github.crazyorr.ffmpegrecorder.RecordActivity.stopRecording(RecordActivity.java:251)
    at com.github.crazyorr.ffmpegrecorder.RecordActivity.onClick(RecordActivity.java:549)

https://github.com/bytedeco/javacv/blob/master/samples/RecordActivity.java#L308

Contributor guide