diff --git a/lib/capture/sp-capture-reader.c b/lib/capture/sp-capture-reader.c index a3614010..1ee85409 100644 --- a/lib/capture/sp-capture-reader.c +++ b/lib/capture/sp-capture-reader.c @@ -176,9 +176,9 @@ sp_capture_reader_bswap_frame (SpCaptureReader *self, if (G_UNLIKELY (self->endian != G_BYTE_ORDER)) { frame->len = GUINT16_SWAP_LE_BE (frame->len); - frame->cpu = GUINT16_SWAP_LE_BE (frame->len); - frame->pid = GUINT32_SWAP_LE_BE (frame->len); - frame->time = GUINT64_SWAP_LE_BE (frame->len); + frame->cpu = GUINT16_SWAP_LE_BE (frame->cpu); + frame->pid = GUINT32_SWAP_LE_BE (frame->pid); + frame->time = GUINT64_SWAP_LE_BE (frame->time); } }