Skip to content

Commit

Permalink
add missing pi.inc
Browse files Browse the repository at this point in the history
  • Loading branch information
gozfree committed Sep 21, 2019
1 parent 3d15be8 commit 1acd320
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
7 changes: 7 additions & 0 deletions build/pi.inc
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#### arm.conf
CROSS_PREFIX := arm-linux-gnueabihf-
OUTPUT := `pwd`/../output/pi/

TOOLCHAINS_ROOT := `$(CROSS_PREFIX)gcc -print-sysroot`
PLATFORM_LIB := $(TOOLCHAINS_ROOT)/usr/lib
MAKEDIR_OUTPUT := @mkdir -p $(OUTPUT)/lib -p $(OUTPUT)/include
6 changes: 4 additions & 2 deletions gear-lib/libmp4parser/test_libmp4parser.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,10 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
******************************************************************************/
#include <stdio.h>
#include "libmp4parser.h"
#include <stdio.h>
#define __STDC_FORMAT_MACROS
#include <inttypes.h>

int main(int argc, char* argv[])
{
Expand All @@ -32,7 +34,7 @@ int main(int argc, char* argv[])
uint64_t duration = 0;
uint32_t w, h;
mp4_get_duration(mp, &duration);
printf("duration = %lu\n", duration);
printf("duration = %" PRIu64 "\n", duration);
mp4_get_resolution(mp, &w, &h);
printf("resolution = %dx%d\n", (int)w, (int)h);
mp4_parser_destroy(mp);
Expand Down

0 comments on commit 1acd320

Please sign in to comment.