summaryrefslogtreecommitdiff
path: root/vp9/encoder
diff options
context:
space:
mode:
authorDmitry Kovalev <dkovalev@google.com>2013-06-10 16:13:08 -0700
committerDmitry Kovalev <dkovalev@google.com>2013-06-10 16:13:08 -0700
commit85381e34167c2d7be4b6220a91250a29223c659e (patch)
treed2352a69cd58b58dc5f4ba370f6eb0bab9537e63 /vp9/encoder
parentba2af976cb6a28e94235741f6954fb05149a5d86 (diff)
downloadlibvpx-85381e34167c2d7be4b6220a91250a29223c659e.tar
libvpx-85381e34167c2d7be4b6220a91250a29223c659e.tar.gz
libvpx-85381e34167c2d7be4b6220a91250a29223c659e.tar.bz2
libvpx-85381e34167c2d7be4b6220a91250a29223c659e.zip
Using network byte order (big-endian) to encode tile size.
This is consistent with uncompressed header encoding. Change-Id: Iccf40a44b493ed36ee085b81ed56f7952cde70a9
Diffstat (limited to 'vp9/encoder')
-rw-r--r--vp9/encoder/vp9_bitstream.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/vp9/encoder/vp9_bitstream.c b/vp9/encoder/vp9_bitstream.c
index 12a11f1c1..a63beedd0 100644
--- a/vp9/encoder/vp9_bitstream.c
+++ b/vp9/encoder/vp9_bitstream.c
@@ -124,11 +124,11 @@ void write_tx_count_stats() {
static int update_bits[255];
-static INLINE void write_le32(uint8_t *p, int value) {
- p[0] = value;
- p[1] = value >> 8;
- p[2] = value >> 16;
- p[3] = value >> 24;
+static INLINE void write_be32(uint8_t *p, int value) {
+ p[0] = value >> 24;
+ p[1] = value >> 16;
+ p[2] = value >> 8;
+ p[3] = value;
}
@@ -1723,7 +1723,7 @@ void vp9_pack_bitstream(VP9_COMP *cpi, uint8_t *dest, unsigned long *size) {
vp9_stop_encode(&residual_bc);
if (tile_col < pc->tile_columns - 1 || tile_row < pc->tile_rows - 1) {
// size of this tile
- write_le32(data_ptr + total_size, residual_bc.pos);
+ write_be32(data_ptr + total_size, residual_bc.pos);
total_size += 4;
}