bytedeco/javacv
View on GitHubRecordActivity sample issue - ArrayIndexOutOfBoundsException
Open
#689 opened on May 5, 2017
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