diff options
-rw-r--r-- | gtk/src/preview.c | 4 | ||||
-rw-r--r-- | gtk/src/preview.h | 2 |
2 files changed, 4 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); } diff --git a/gtk/src/preview.h b/gtk/src/preview.h index 089d60d1c..56d62415b 100644 --- a/gtk/src/preview.h +++ b/gtk/src/preview.h @@ -16,6 +16,8 @@ #if !defined(_GHB_PREVIEW_H_) #define _GHB_PREVIEW_H_ +#define GHB_PREVIEW_MAX 60 + #define MOD_ROUND(v,m) ((m==1)?v:(m * ((v + (m>>1)) / m))) #define MOD_DOWN(v,m) (m * (v / m)) #define MOD_UP(v,m) (m * ((v + m - 1) / m)) |