X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=nageru%2Fmjpeg_encoder.cpp;h=e39e802c843cbef0bcd6f130db17702d722c2ce3;hb=a2bbd645256cb31f6ba608c21707ad32c62b4598;hp=033f67afd9e439db3a5289248bed5b67e8f306ba;hpb=9ece26cae09110a3c6a0c74aefb2269a6dd9a7d9;p=nageru diff --git a/nageru/mjpeg_encoder.cpp b/nageru/mjpeg_encoder.cpp index 033f67a..e39e802 100644 --- a/nageru/mjpeg_encoder.cpp +++ b/nageru/mjpeg_encoder.cpp @@ -832,7 +832,7 @@ vector MJPEGEncoder::encode_jpeg_libjpeg(const QueuedFrame &qf) for (unsigned y = 0; y < qf.video_format.height; y += 8) { const uint8_t *src = qf.frame->data_copy + field_start + y * qf.video_format.width * 2; - memcpy_interleaved(tmp_y, tmp_cbcr, src, qf.video_format.width * 8 * 2); + memcpy_interleaved(tmp_cbcr, tmp_y, src, qf.video_format.width * 8 * 2); memcpy_interleaved(tmp_cb, tmp_cr, tmp_cbcr, qf.video_format.width * 8); for (unsigned yy = 0; yy < 8; ++yy) { yptr[yy] = tmp_y + yy * width;