summaryrefslogtreecommitdiffstats
path: root/gtk/src/preview.c
diff options
context:
space:
mode:
Diffstat (limited to 'gtk/src/preview.c')
-rw-r--r--gtk/src/preview.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk/src/preview.c b/gtk/src/preview.c
index 3be436442..126943a54 100644
--- a/gtk/src/preview.c
+++ b/gtk/src/preview.c
@@ -62,7 +62,7 @@ struct preview_s
gint frame;
gint state;
gboolean pause;
- gboolean encoded[60];
+ gboolean encoded[GHB_PREVIEW_MAX];
gint encode_frame;
gint live_id;
gchar *current;
@@ -733,7 +733,7 @@ ghb_live_reset(signal_user_data_t *ud)
ud->preview->current = NULL;
}
encoded = ud->preview->encoded[ud->preview->frame];
- memset(ud->preview->encoded, 0, sizeof(gboolean) * 10);
+ memset(ud->preview->encoded, 0, sizeof(gboolean) * GHB_PREVIEW_MAX);
if (encoded)
ghb_set_preview_image(ud);
}