summaryrefslogtreecommitdiff
path: root/vp9/decoder
diff options
context:
space:
mode:
authorJames Zern <jzern@google.com>2015-04-21 22:48:24 -0700
committerJames Zern <jzern@google.com>2015-04-29 17:42:30 -0700
commit9e81112df2be0a9544f6d9f76106f5deacd9c170 (patch)
tree808b4d447a8880f300239f0b9646770101d1170f /vp9/decoder
parent3a7bc161560d9aaeaadf3a6efeb19e1f0768e4e2 (diff)
downloadlibvpx-9e81112df2be0a9544f6d9f76106f5deacd9c170.tar
libvpx-9e81112df2be0a9544f6d9f76106f5deacd9c170.tar.gz
libvpx-9e81112df2be0a9544f6d9f76106f5deacd9c170.tar.bz2
libvpx-9e81112df2be0a9544f6d9f76106f5deacd9c170.zip
vp9_decodeframe: simplify compare_tile_buffers
return the difference between the 2 buffer sizes rather than exactly -1/0/1. Change-Id: Idf1ccff7088b31845470bcc71bea5927b0598cc7
Diffstat (limited to 'vp9/decoder')
-rw-r--r--vp9/decoder/vp9_decodeframe.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/vp9/decoder/vp9_decodeframe.c b/vp9/decoder/vp9_decodeframe.c
index 264ad4422..81f87cdf7 100644
--- a/vp9/decoder/vp9_decodeframe.c
+++ b/vp9/decoder/vp9_decodeframe.c
@@ -1086,13 +1086,7 @@ static int tile_worker_hook(TileWorkerData *const tile_data,
static int compare_tile_buffers(const void *a, const void *b) {
const TileBuffer *const buf1 = (const TileBuffer*)a;
const TileBuffer *const buf2 = (const TileBuffer*)b;
- if (buf1->size < buf2->size) {
- return 1;
- } else if (buf1->size == buf2->size) {
- return 0;
- } else {
- return -1;
- }
+ return (int)(buf2->size - buf1->size);
}
static const uint8_t *decode_tiles_mt(VP9Decoder *pbi,