提交 947c0542 authored 作者: Seven Du's avatar Seven Du

update to mp4v2-2.0.0

It seems I cannot contact the original author
it seems has a bug which even cannot compile with mp4v2-trunk-479
This patch allow it to compile
上级 96f74a9f
# LOCAL_CFLAGS=-I./mp4v2-2.0.0/include
LOCAL_LDFLAGS=-lmp4v2 LOCAL_LDFLAGS=-lmp4v2
LOCAL_SOURCES=mp4_helper.cpp LOCAL_SOURCES=mp4_helper.cpp
LOCAL_OBJS=mp4_helper.o LOCAL_OBJS=mp4_helper.o
......
...@@ -17,7 +17,9 @@ Paulo Rogério Panhoto <paulo@voicetechnology.com.br>. ...@@ -17,7 +17,9 @@ Paulo Rogério Panhoto <paulo@voicetechnology.com.br>.
Portions created by the Initial Developer are Copyright (C) Portions created by the Initial Developer are Copyright (C)
the Initial Developer. All Rights Reserved. the Initial Developer. All Rights Reserved.
Contributors:
Seven Du <dujinfang@gmail.com>
*/ */
#include "mp4_helper.hpp" #include "mp4_helper.hpp"
...@@ -38,7 +40,7 @@ namespace MP4 ...@@ -38,7 +40,7 @@ namespace MP4
void Context::open(const char * file) void Context::open(const char * file)
{ {
fh = MP4Read(file, 0); fh = MP4Read(file);
if (fh == MP4_INVALID_FILE_HANDLE) throw Exception(file, "Open failed"); if (fh == MP4_INVALID_FILE_HANDLE) throw Exception(file, "Open failed");
getTracks(file); getTracks(file);
} }
......
...@@ -17,16 +17,22 @@ Paulo Rogério Panhoto <paulo@voicetechnology.com.br>. ...@@ -17,16 +17,22 @@ Paulo Rogério Panhoto <paulo@voicetechnology.com.br>.
Portions created by the Initial Developer are Copyright (C) Portions created by the Initial Developer are Copyright (C)
the Initial Developer. All Rights Reserved. the Initial Developer. All Rights Reserved.
Contributor(s):
Seven Du <dujinfang@gmail.com>
*/ */
#ifndef MP4_HELPER_HPP_ #ifndef MP4_HELPER_HPP_
#define MP4_HELPER_HPP_ #define MP4_HELPER_HPP_
#include <mp4.h> #include <mp4v2/mp4v2.h>
#include <string> #include <string>
#include <exception> #include <exception>
#include <string> #include <string>
typedef unsigned int u_int;
namespace MP4 namespace MP4
{ {
class Exception: public std::exception { class Exception: public std::exception {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论