diff --git a/api-ffmpeg/src/main/java/org/jmisb/api/video/FrameConverter.java b/api-ffmpeg/src/main/java/org/jmisb/api/video/FrameConverter.java index 2a6070c6e..c576048e0 100644 --- a/api-ffmpeg/src/main/java/org/jmisb/api/video/FrameConverter.java +++ b/api-ffmpeg/src/main/java/org/jmisb/api/video/FrameConverter.java @@ -53,7 +53,7 @@ public BufferedImage convert(AVFrame frame) { byte[] a = ((DataBufferByte) out).getData(); ByteBuffer src = - frame.data(0).capacity((long) frame.width() * (long) frame.linesize(0)).asBuffer(); + frame.data(0).capacity((long) frame.height() * (long) frame.linesize(0)).asBuffer(); copy(src, frame.linesize(0), ByteBuffer.wrap(a, start, a.length - start), step); return bufferedImage;