bytedeco/javacv

FFmpegFrameRecorder java.nio.BufferOverflowException

Open

#784 opened on Sep 11, 2017

View on GitHub
 (3 comments) (0 reactions) (0 assignees)Java (1,583 forks)batch import
help wantedquestion

Repository metrics

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

Description

java.nio.BufferOverflowException

Sometimes this error happens at this line ((ByteBuffer)yuvImage.image[0].position(0)).put(data);

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

compile('org.bytedeco:javacv-platform:1.3.3') { exclude group: 'org.bytedeco.javacpp-presets' } 
compile group: 'org.bytedeco.javacpp-presets', name: 'ffmpeg', version: '3.2.1-1.3', classifier: 'android-arm

Contributor guide