Skip to content

Commit ab876b3

Browse files
committed
Resolving snapshot crashes on Rockchip
1 parent 82e7122 commit ab876b3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/hal/plus/rk_hal.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -677,8 +677,8 @@ int rk_video_snapshot_grab(char index, hal_jpegdata *jpeg)
677677
jpeg->jpegSize = 0;
678678
for (unsigned int i = 0; i < strm.count; i++) {
679679
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;
680+
unsigned int packLen = pack->length;
681+
unsigned char *packData = rk_mb.fnGetData(pack->mbBlk);
682682

683683
unsigned int newLen = jpeg->jpegSize + packLen;
684684
if (newLen > jpeg->length) {

0 commit comments

Comments
 (0)