Skip to content

Commit 0bef153

Browse files
committed
encoded + offset
1 parent 94521e9 commit 0bef153

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

examples/screenrecord/screenrecord.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ class VulkanExample : public VulkanExampleBase
106106
size_t outsize = 0;
107107
uint8_t *encoded = AMediaCodec_getOutputBuffer(codec, idx, &outsize);
108108
if (h264file) {
109-
if (1 != fwrite(encoded, info.size, 1, h264file)) {
109+
if (1 != fwrite(encoded + info.offset, info.size, 1, h264file)) {
110110
LOGE("write failed");
111111
} else {
112112
framesEncoded++;

0 commit comments

Comments
 (0)