1
0
mirror of https://github.com/rofafor/vdr-plugin-femon.git synced 2023-10-10 13:36:53 +02:00

Silenced a compilation warning.

This commit is contained in:
Rolf Ahrenberg 2009-09-26 12:15:26 +03:00
parent 56b9b89204
commit ea4561a874

View File

@ -528,7 +528,7 @@ int cFemonH264::parseSPS(const uint8_t *buf, int len)
sar_height = s_SAR[aspect_ratio_idc].h; sar_height = s_SAR[aspect_ratio_idc].h;
} }
if (sar_width && sar_height) { if (sar_width && sar_height) {
int index = -1, ratio = 100.0L * sar_width * width / sar_height / height; int index = -1, ratio = int(100.0L * sar_width * width / sar_height / height);
for (unsigned int i = 0; i < ELEMENTS(s_DAR); ++i) { for (unsigned int i = 0; i < ELEMENTS(s_DAR); ++i) {
if (s_DAR[i].ratio == ratio) { if (s_DAR[i].ratio == ratio) {
index = i; index = i;