summaryrefslogtreecommitdiff
path: root/libavcodec/hapdec.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2015-07-27 23:47:01 +0200
committerMichael Niedermayer <michael@niedermayer.cc>2015-07-27 23:53:55 +0200
commit4be1b6bef09737cef8173b619132fa13bef80818 (patch)
tree649170b922ae4641f2519d9645db950d1a9256d2 /libavcodec/hapdec.c
parentf01e3c5d000d264b2935e186594a37a3c00f9465 (diff)
parent3ee217853a6741b829a2683f49c590618891b1ab (diff)
Merge commit '3ee217853a6741b829a2683f49c590618891b1ab'
* commit '3ee217853a6741b829a2683f49c590618891b1ab': Support the Hap chunked frame format Conflicts: libavcodec/hap.h libavcodec/hapdec.c libavcodec/version.h See: c7e6443441ed5c1b5f64067dfbf4956bc2c6acbb Merged-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavcodec/hapdec.c')
-rw-r--r--libavcodec/hapdec.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/hapdec.c b/libavcodec/hapdec.c
index e2713fcc69..3f036fd690 100644
--- a/libavcodec/hapdec.c
+++ b/libavcodec/hapdec.c
@@ -37,10 +37,10 @@
#include "bytestream.h"
#include "hap.h"
#include "internal.h"
+#include "memory.h"
#include "snappy.h"
#include "texturedsp.h"
#include "thread.h"
-#include "memory.h"
/* The first three bytes are the size of the section past the header, or zero
* if the length is stored in the next long word. The fourth byte in the first
@@ -252,6 +252,7 @@ static int decompress_chunks_thread(AVCodecContext *avctx, void *arg,
if (chunk->compressor == HAP_COMP_SNAPPY) {
int ret;
int64_t uncompressed_size = ctx->tex_size;
+
/* Uncompress the frame */
ret = ff_snappy_uncompress(&gbc, dst, &uncompressed_size);
if (ret < 0) {