Skip to content

Commit c0700f4

Browse files
committed
Core (Video): Fix log message typos and improve clarity of a comment.
1 parent 7b3067d commit c0700f4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

libvisual/libvisual/lv_video.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -304,12 +304,12 @@ namespace LV {
304304
}
305305

306306
if (m_impl->height <= 0) {
307-
visual_log (VISUAL_LOG_ERROR, "Video has a zero of negative height (%d).", m_impl->height);
307+
visual_log (VISUAL_LOG_ERROR, "Video has a zero or negative height (%d).", m_impl->height);
308308
return false;
309309
}
310310

311311
if (m_impl->pitch <= 0) {
312-
visual_log (VISUAL_LOG_ERROR, "Video has a zero of negative pitch (%d).", m_impl->pitch);
312+
visual_log (VISUAL_LOG_ERROR, "Video has a zero or negative pitch (%d).", m_impl->pitch);
313313
return false;
314314
}
315315

@@ -384,8 +384,8 @@ namespace LV {
384384

385385
// Videos must have the same colours at every pixel.
386386

387-
// Determine the block size in bytes in each row to compare. This must exclude padding. It must also exclude
388-
// pixels outside of a subvideo's extents.
387+
// Determine the size (in bytes) of the blocks in each row to compare. This must exclude padding.
388+
// It must also exclude pixels outside of a subvideo's extents.
389389
std::size_t const content_bytes_per_row = m_impl->width * m_impl->bpp;
390390

391391
for (int y = 0; y < m_impl->height; y++) {

0 commit comments

Comments
 (0)