summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/av_format_identify.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/av_format_identify.c b/src/av_format_identify.c
index 09d93a4..90c231a 100644
--- a/src/av_format_identify.c
+++ b/src/av_format_identify.c
@@ -316,6 +316,7 @@ struct mp4_box_t
};
};
#define MIN_MP4_BOX_SIZE (sizeof(struct mp4_box_t)-8)
+#define htonll(buff) ((htonl(*(uint32_t *)buff)<<32)+htonl(*(size_t *)(buff+4)))
int is_mp4_each(const char* buff, size_t size)
{
int ret = 0;
@@ -336,7 +337,7 @@ int is_mp4_each(const char* buff, size_t size)
{
if(size-(p-buff)>sizeof(struct mp4_box_t))
{
- p+=htonll(box->large_size);//TODO: Implement htonll
+ p += htonll(&box->large_size);//p+=htonll(box->large_size);//TODO: Implement htonll
}
else
{