From: John Koleszar Date: Fri, 18 Mar 2011 04:05:06 +0000 (-0400) Subject: Merge remote branch 'internal/upstream' into HEAD X-Git-Tag: v1.3.0~1217^2~380^2~347 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=cba980e3eb375261635b9332d99137c0b6b32b5f;p=libvpx Merge remote branch 'internal/upstream' into HEAD --- cba980e3eb375261635b9332d99137c0b6b32b5f diff --cc vp8/encoder/bitstream.c index cb0846046,adbd10698..db883c7d6 --- a/vp8/encoder/bitstream.c +++ b/vp8/encoder/bitstream.c @@@ -1711,11 -1632,24 +1712,26 @@@ void vp8_pack_bitstream(VP8_COMP *cpi, active_section = 1; #endif } - +#if CONFIG_SEGMENTATION + //printf("%d\n",segment_cost); +#endif vp8_stop_encode(bc); + oh.first_partition_length_in_bytes = cpi->bc.pos; + + /* update frame tag */ + { + int v = (oh.first_partition_length_in_bytes << 5) | + (oh.show_frame << 4) | + (oh.version << 1) | + oh.type; + + dest[0] = v; + dest[1] = v >> 8; + dest[2] = v >> 16; + } + + *size = VP8_HEADER_SIZE + extra_bytes_packed + cpi->bc.pos; if (pc->multi_token_partition != ONE_PARTITION) {