summaryrefslogtreecommitdiff
path: root/recordmydesktop
diff options
context:
space:
mode:
authorVito Caputo <vcaputo@pengaru.com>2020-07-09 22:15:21 -0700
committerVito Caputo <vcaputo@pengaru.com>2020-07-11 13:36:41 -0700
commit4aebce99a7811e4defc89c65efd69e9ba71f1f0c (patch)
tree93fdd1a73f13690f0e329d55c91ddc2f0502b8f0 /recordmydesktop
parent2ed7cf4206cbbbf00137099d048774406adbe40d (diff)
cache_frame: calculate size from yuv dimensions
More preparation for yuv and rrect dimensions differing
Diffstat (limited to 'recordmydesktop')
-rw-r--r--recordmydesktop/src/rmd_cache_frame.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/recordmydesktop/src/rmd_cache_frame.c b/recordmydesktop/src/rmd_cache_frame.c
index 79570f3..8d6c452 100644
--- a/recordmydesktop/src/rmd_cache_frame.c
+++ b/recordmydesktop/src/rmd_cache_frame.c
@@ -281,7 +281,7 @@ void *rmdCacheImageBuffer(ProgData *pdata) {
{
unsigned int bytes_per_pixel = pdata->specs.depth >= 24 ? 4 : 2;
- unsigned int pixels_per_frame = pdata->brwin.rrect.width * pdata->brwin.rrect.height;
+ unsigned int pixels_per_frame = pdata->enc_data->yuv.y_width * pdata->enc_data->yuv.y_height;
total_received_bytes = ((unsigned long long int)frameno) * bytes_per_pixel * pixels_per_frame;
}
© All Rights Reserved