Commit 55f87913 authored by bcoudurier's avatar bcoudurier

it seems ogg requires granule to be -1 on unfinished packets

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@11866 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 76944eab
......@@ -51,7 +51,11 @@ static int ogg_write_page(AVFormatContext *s, const uint8_t *data, int size,
offset_t crc_offset;
int page_segments, i;
size = FFMIN(size, 255*255);
if (size >= 255*255) {
granule = -1;
size = 255*255;
}
page_segments = FFMIN((size/255)+!!size, 255);
init_checksum(s->pb, ff_crc04C11DB7_update, 0);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment