return MMFILE_FORMAT_SUCCESS;
}
-static int __mmfile_get_frame(AVFormatContext *pFormatCtx, double timestamp, bool is_accurate, unsigned char **frame, int *size, int *width, int *height)
+static int __mmfile_get_frame(AVFormatContext *pFormatCtx, int64_t timestamp, bool is_accurate, unsigned char **frame, int *size, int *width, int *height)
{
unsigned int i = 0;
int videoStream = -1;
int key_detected = 0;
int got_picture = 0;
- double pos = timestamp;
+ int64_t pos = timestamp;
bool find = false;
bool first_seek = true;
int64_t pts = 0;
#endif
duration = duration * MILLION;
if ((duration <= 0) || (duration <= pos)) {
- debug_error(DEBUG, "duration error duration[%f] pos[%f]", duration, pos);
+ debug_error(DEBUG, "duration error duration[%f] pos[%lld]", duration, pos);
ret = MMFILE_FORMAT_FAIL;
goto exception;
}