diff options
Diffstat (limited to 'apps')
-rw-r--r-- | apps/plugins/mpegplayer/disk_buf.h | 4 | ||||
-rw-r--r-- | apps/plugins/mpegplayer/mpeg_parser.c | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/apps/plugins/mpegplayer/disk_buf.h b/apps/plugins/mpegplayer/disk_buf.h index 5be88f195a..bc76ab6dc3 100644 --- a/apps/plugins/mpegplayer/disk_buf.h +++ b/apps/plugins/mpegplayer/disk_buf.h | |||
@@ -27,6 +27,10 @@ | |||
27 | #define OFF_T_MAX (~((off_t)1 << (sizeof (off_t)*8 - 1))) | 27 | #define OFF_T_MAX (~((off_t)1 << (sizeof (off_t)*8 - 1))) |
28 | #endif | 28 | #endif |
29 | 29 | ||
30 | #ifndef OFF_T_MIN | ||
31 | #define OFF_T_MIN ((off_t)1 << (sizeof (off_t)*8 - 1)) | ||
32 | #endif | ||
33 | |||
30 | #define DISK_BUF_PAGE_SHIFT 15 /* 32KB cache lines */ | 34 | #define DISK_BUF_PAGE_SHIFT 15 /* 32KB cache lines */ |
31 | #define DISK_BUF_PAGE_SIZE (1 << DISK_BUF_PAGE_SHIFT) | 35 | #define DISK_BUF_PAGE_SIZE (1 << DISK_BUF_PAGE_SHIFT) |
32 | #define DISK_BUF_PAGE_MASK (DISK_BUF_PAGE_SIZE-1) | 36 | #define DISK_BUF_PAGE_MASK (DISK_BUF_PAGE_SIZE-1) |
diff --git a/apps/plugins/mpegplayer/mpeg_parser.c b/apps/plugins/mpegplayer/mpeg_parser.c index 06fa01c2e9..6883916149 100644 --- a/apps/plugins/mpegplayer/mpeg_parser.c +++ b/apps/plugins/mpegplayer/mpeg_parser.c | |||
@@ -60,8 +60,8 @@ void str_end_of_stream(struct stream *str) | |||
60 | * its behalf. Set right to the min first so a thread reading the | 60 | * its behalf. Set right to the min first so a thread reading the |
61 | * overall window gets doesn't see this as valid no matter what the | 61 | * overall window gets doesn't see this as valid no matter what the |
62 | * file length. */ | 62 | * file length. */ |
63 | str->hdr.win_right = LONG_MIN; | 63 | str->hdr.win_right = OFF_T_MIN; |
64 | str->hdr.win_left = LONG_MAX; | 64 | str->hdr.win_left = OFF_T_MAX; |
65 | /* No packets */ | 65 | /* No packets */ |
66 | str->curr_packet = str->curr_packet_end = NULL; | 66 | str->curr_packet = str->curr_packet_end = NULL; |
67 | /* No flags */ | 67 | /* No flags */ |