Revision 10ff2967

View differences:

libavutil/file.c
75 75

  
76 76
#if HAVE_MMAP
77 77
    ptr = mmap(NULL, *size, PROT_READ|PROT_WRITE, MAP_PRIVATE, fd, 0);
78
    if ((int)(ptr) == -1) {
78
    if (ptr == (void*)-1) {
79 79
        err = AVERROR(errno);
80 80
        av_strerror(err, errbuf, sizeof(errbuf));
81 81
        av_log(&file_log_ctx, AV_LOG_ERROR, "Error occurred in mmap(): %s\n", errbuf);

Also available in: Unified diff