Revision 2dd3c9e0 libavformat/oggenc.c

View differences:

libavformat/oggenc.c
51 51
    offset_t crc_offset;
52 52
    int page_segments, i;
53 53

  
54
    size = FFMIN(size, 255*255);
54
    if (size >= 255*255) {
55
        granule = -1;
56
        size = 255*255;
57
    }
58

  
55 59
    page_segments = FFMIN((size/255)+!!size, 255);
56 60

  
57 61
    init_checksum(s->pb, ff_crc04C11DB7_update, 0);

Also available in: Unified diff