Skip to content

Commit

Permalink
Updated code to use serialized size
Browse files Browse the repository at this point in the history
  • Loading branch information
mohammedzakikochargi committed Aug 10, 2023
1 parent 0e09bb4 commit 3ab78b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion base/src/MotionVectorExtractor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ int DetailFfmpeg::decodeAndGetMotionVectors(AVPacket* pkt, frame_container& fram
drawingOverlay.add(&compositeOverlay);
auto serializedSize = drawingOverlay.mGetSerializeSize();
outFrame = makeFrameWithPinId(serializedSize, motionVectorPinId);
memcpy(outFrame->data(), sideData->data, sideData->size);
memcpy(outFrame->data(), sideData->data, serializedSize);
drawingOverlay.serialize(outFrame);
frames.insert(make_pair(motionVectorPinId, outFrame));
}
Expand Down

0 comments on commit 3ab78b3

Please sign in to comment.