Skip to content

Commit

Permalink
merge with develop, includes MP4Reader and Utils cleanup.
Browse files Browse the repository at this point in the history
  • Loading branch information
dnewman-gpsw committed Apr 12, 2021
2 parents ed617eb + 2c14eef commit dff77bd
Show file tree
Hide file tree
Showing 9 changed files with 658 additions and 490 deletions.
6 changes: 3 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ project (gpmf-parser)
set(CMAKE_SUPPRESS_REGENERATION true)
set(CMAKE_CONFIGURATION_TYPES "Debug;Release")

file(GLOB LIB_SOURCES "GPMF_parser.c" "demo/GPMF_mp4reader.c")
file(GLOB SOURCES ${LIB_SOURCES} "demo/GPMF_demo.c" "demo/GPMF_print.c")
file(GLOB LIB_SOURCES "GPMF_parser.c" "GPMF_utils.c")
file(GLOB SOURCES ${LIB_SOURCES} "demo/GPMF_demo.c" "demo/GPMF_print.c" "demo/GPMF_mp4reader.c")

add_executable(GPMF_PARSER_BIN ${SOURCES})
set_target_properties(GPMF_PARSER_BIN PROPERTIES OUTPUT_NAME "${PROJECT_NAME}")
Expand All @@ -20,5 +20,5 @@ install(TARGETS GPMF_PARSER_BIN DESTINATION "bin")
install(TARGETS GPMF_PARSER_LIB DESTINATION "lib")
install(FILES "${CMAKE_BINARY_DIR}/${PROJECT_NAME}.pc" DESTINATION "lib/pkgconfig")

install(FILES "GPMF_parser.h" "GPMF_common.h" DESTINATION "include/gpmf-parser")
install(FILES "GPMF_parser.h" "GPMF_common.h" "GPMF_utils.h" DESTINATION "include/gpmf-parser")
install(FILES "demo/GPMF_mp4reader.h" DESTINATION "include/gpmf-parser/demo")
10 changes: 10 additions & 0 deletions GPDeps
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"version": "1.0.0",

"info": {
"type": "lib",
"visibility": "public",
"platforms": ["android", "ios", "linux", "macos", "win"]
}
}

2 changes: 1 addition & 1 deletion GPMF_common.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! @file GPMF_parser.h
/*! @file GPMF_common.h
*
* @brief GPMF Parser library include
*
Expand Down
6 changes: 3 additions & 3 deletions GPMF_parser.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
*
* @brief GPMF Parser library
*
* @version 2.1.0
* @version 2.2.1
*
* (C) Copyright 2017-2020 GoPro Inc (http://gopro.com/).
*
Expand Down Expand Up @@ -75,7 +75,7 @@ GPMF_ERR GPMF_Validate(GPMF_stream *ms, GPMF_LEVELS recurse)
{
if (ms)
{
GPMF_ERROR ret = GPMF_OK;
GPMF_ERR ret = GPMF_OK;
uint32_t currpos = ms->pos;
uint32_t nestsize = ms->nest_size[ms->nest_level];
if (nestsize == 0 && ms->nest_level == 0)
Expand Down Expand Up @@ -570,7 +570,7 @@ GPMF_ERR GPMF_SeekToSamples(GPMF_stream *ms)

if (ms->pos + 1 < ms->buffer_size_longs)
{
GPMF_ERROR ret = GPMF_OK;
GPMF_ERR ret = GPMF_OK;
uint32_t size, type = GPMF_SAMPLE_TYPE(ms->buffer[ms->pos + 1]);

memcpy(&prevstate, ms, sizeof(GPMF_stream));
Expand Down
Loading

0 comments on commit dff77bd

Please sign in to comment.