diff options
author | Bradley Sepos <[email protected]> | 2015-09-10 18:37:31 -0400 |
---|---|---|
committer | Bradley Sepos <[email protected]> | 2015-09-10 18:37:31 -0400 |
commit | 83c04b7381dfd3657c0da6b2cb6bbb04cc190613 (patch) | |
tree | a7b67e247969e3d0dfb6a1a954ce521865a60d13 /libhb | |
parent | 400bb38bf8ebc7dbe1c8eb5f525983ebdfd5d3b0 (diff) |
libhb: Fix compiler issues in previous commit.
gcc didn't like the way variables were being initialized.
Diffstat (limited to 'libhb')
-rw-r--r-- | libhb/common.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/libhb/common.c b/libhb/common.c index 092d6d306..b6d36d203 100644 --- a/libhb/common.c +++ b/libhb/common.c @@ -65,6 +65,13 @@ enum HB_GID_MUX_MP4, }; +#define HB_VIDEO_CLOCK 27000000 // 27MHz clock +#define HB_VIDEO_FPS_MIN 1 +#define HB_VIDEO_FPS_MAX 1000 +int hb_video_rate_clock = HB_VIDEO_CLOCK; +int hb_video_rate_min = HB_VIDEO_CLOCK / HB_VIDEO_FPS_MAX; // Min clock rate from *max* frame rate +int hb_video_rate_max = HB_VIDEO_CLOCK / HB_VIDEO_FPS_MIN; // Max clock rate from *min* frame rate + typedef struct { hb_rate_t item; @@ -96,9 +103,6 @@ hb_rate_internal_t hb_video_rates[] = { { "60", 450000, }, NULL, 1, }, }; int hb_video_rates_count = sizeof(hb_video_rates) / sizeof(hb_video_rates[0]); -const int hb_video_rate_clock = 27000000; // 27MHz clock -int hb_video_rate_min = hb_video_rate_clock / 1000; // Min clock rate from *max* frame rate -int hb_video_rate_max = hb_video_rate_clock / 1; // Max clock rate from *min* frame rate hb_rate_t *hb_audio_rates_first_item = NULL; hb_rate_t *hb_audio_rates_last_item = NULL; |