diff options
| author | Xiaoqing MA <[email protected]> | 2018-07-25 09:33:44 +0800 |
|---|---|---|
| committer | Xiaoqing MA <[email protected]> | 2018-07-25 09:33:44 +0800 |
| commit | aec0d6719e3f27e2a5e72bc3fd2467ff382402e5 (patch) | |
| tree | de356ec9dfdbce62872d1ed32f16b6116e828857 /src/av_format_identify.c | |
| parent | 621174db070d060b0996eef3593c5944322c82b3 (diff) | |
1.按照mp4修改思路修改ts与flv-待继续修改
Diffstat (limited to 'src/av_format_identify.c')
| -rw-r--r-- | src/av_format_identify.c | 3 |
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 { |
