Skip to content

Commit

Permalink
Provide printing macros for ffmpeg header
Browse files Browse the repository at this point in the history
  • Loading branch information
tongyuantongyu committed Aug 24, 2023
1 parent 15284b2 commit f74deef
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,9 @@ endif()
if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
if ($ENV{SCRIPT_EXEC_MODE} MATCHES "x86")
# runpath for bmf libs
set(CMAKE_CXX_FLAGS "-Wno-deprecated-declarations -Wl,-z,defs,-rpath,'$ORIGIN',--enable-new-dtags ${CMAKE_COVERAGE_FLAGS}") # For python dist
set(CMAKE_CXX_FLAGS "-D__STDC_FORMAT_MACROS -Wno-deprecated-declarations -Wl,-z,defs,-rpath,'$ORIGIN',--enable-new-dtags ${CMAKE_COVERAGE_FLAGS} ${CMAKE_CXX_FLAGS}") # For python dist
else()
set(CMAKE_CXX_FLAGS "-Wno-deprecated-declarations -Wl,-z,defs ${CMAKE_COVERAGE_FLAGS}") #report unresolved symbols
set(CMAKE_CXX_FLAGS "-D__STDC_FORMAT_MACROS -Wno-deprecated-declarations -Wl,-z,defs ${CMAKE_COVERAGE_FLAGS} ${CMAKE_CXX_FLAGS}") #report unresolved symbols
endif()
endif()

Expand Down
1 change: 1 addition & 0 deletions bmf/c_modules/include/c_module.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
#define BMF_C_MODULE_H

#include <cstdlib>
#include <cinttypes>
#include <sstream>
#include <bmf/sdk/log.h>
#include <bmf/sdk/module.h>
Expand Down
2 changes: 1 addition & 1 deletion bmf/c_modules/include/ffmpeg_decoder.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@
#ifndef BMF_FF_DECODER_H
#define BMF_FF_DECODER_H

#include "c_module.h"
#include <bmf/sdk/bmf_av_packet.h>
#include <bmf/sdk/filter_graph.h>
#include "c_module.h"
#include "video_sync.h"
#include <condition_variable>
#include <thread>
Expand Down
1 change: 1 addition & 0 deletions bmf/sdk/cpp_sdk/include/bmf/sdk/filter_graph.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
#ifndef C_MODULES_FILTER_GRAPH_H
#define C_MODULES_FILTER_GRAPH_H

#include <cinttypes>
#include <bmf/sdk/log.h>
#include <string>
#include <vector>
Expand Down

0 comments on commit f74deef

Please sign in to comment.