summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXiaoqing MA <[email protected]>2018-07-25 09:33:44 +0800
committerXiaoqing MA <[email protected]>2018-07-25 09:33:44 +0800
commitaec0d6719e3f27e2a5e72bc3fd2467ff382402e5 (patch)
treede356ec9dfdbce62872d1ed32f16b6116e828857
parent621174db070d060b0996eef3593c5944322c82b3 (diff)
1.按照mp4修改思路修改ts与flv-待继续修改
-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
{