Skip to content

Commit c78f110

Browse files
committed
mediacodec: ndk: use AMediaCodecBufferInfo size
The buffer size can be bigger than valid data size.
1 parent df2cd48 commit c78f110

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/codec/omxil/mediacodec_ndk.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -447,7 +447,7 @@ static int GetOutput(mc_api *api, mc_api_out *p_out, mtime_t i_timeout)
447447
return VLC_EGENERIC;
448448
}
449449
p_out->u.buf.p_ptr = p_mc_buf + info.offset;
450-
p_out->u.buf.i_size = i_mc_size;
450+
p_out->u.buf.i_size = info.size;
451451
}
452452
return 1;
453453
}

0 commit comments

Comments
 (0)