We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 82e7122 commit ab876b3Copy full SHA for ab876b3
src/hal/plus/rk_hal.c
@@ -677,8 +677,8 @@ int rk_video_snapshot_grab(char index, hal_jpegdata *jpeg)
677
jpeg->jpegSize = 0;
678
for (unsigned int i = 0; i < strm.count; i++) {
679
rk_venc_pack *pack = &strm.packet[i];
680
- unsigned int packLen = pack->length - pack->offset;
681
- unsigned char *packData = rk_mb.fnGetData(pack->mbBlk) + pack->offset;
+ unsigned int packLen = pack->length;
+ unsigned char *packData = rk_mb.fnGetData(pack->mbBlk);
682
683
unsigned int newLen = jpeg->jpegSize + packLen;
684
if (newLen > jpeg->length) {
0 commit comments