Skip to content

Commit

Permalink
Rename ENABLE_FFMPEG3 to ENABLE_FFMPEG
Browse files Browse the repository at this point in the history
  • Loading branch information
bear101 committed Nov 2, 2024
1 parent 619bcb1 commit 1b23272
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions Library/TeamTalkLib/avstream/AudioResampler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@

#if defined(ENABLE_DMORESAMPLER)
#include "DMOResampler.h"
#elif defined(ENABLE_FFMPEG3)
#elif defined(ENABLE_FFMPEG)
#include "FFmpegResampler.h"
#endif

Expand Down Expand Up @@ -140,7 +140,7 @@ audio_resampler_t MakeAudioResampler(const media::AudioFormat& informat,
resampler.reset(dmo);
ret = dmo->Init(SAMPLEFORMAT_INT16, SAMPLEFORMAT_INT16);
MYTRACE(ACE_TEXT("Launched DMOResampler\n"));
#elif defined(ENABLE_FFMPEG3)
#elif defined(ENABLE_FFMPEG)
auto ffmpeg = new FFMPEGResampler(informat, outformat, input_samples_size);
resampler.reset(ffmpeg);
ret = ffmpeg->Init();
Expand Down
8 changes: 4 additions & 4 deletions Library/TeamTalkLib/avstream/MediaStreamer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@
#include "WinMedia.h"
#endif /* ENABLE_DSHOW */

#if defined(ENABLE_FFMPEG3)
#if defined(ENABLE_FFMPEG)
#include "FFmpegStreamer.h"
#endif /* ENABLE_FFMPEG3*/
#endif /* ENABLE_FFMPEG*/

#if defined(ENABLE_OPUSTOOLS) && defined(ENABLE_OPUS)
#include "OpusFileStreamer.h"
Expand All @@ -56,7 +56,7 @@ bool GetMediaFileProp(const ACE_TString& filename, MediaFileProp& fileprop)
return GetMFMediaFileProp(filename, fileprop);
#elif defined(ENABLE_DSHOW)
return GetDSMediaFileProp(filename, fileprop);
#elif defined(ENABLE_FFMPEG3)
#elif defined(ENABLE_FFMPEG)
return GetAVMediaFileProp(filename, fileprop);
#endif
return false;
Expand All @@ -76,7 +76,7 @@ mediafile_streamer_t MakeMediaFileStreamer(const ACE_TString& filename, const Me
streamer.reset(new MFStreamer(filename, out_prop));
#elif defined(ENABLE_DSHOW)
streamer.reset(new DSWrapperThread());
#elif defined(ENABLE_FFMPEG3)
#elif defined(ENABLE_FFMPEG)
streamer.reset(new FFmpegStreamer(filename, out_prop));
#endif

Expand Down
2 changes: 1 addition & 1 deletion Library/TeamTalkLib/build/avstream.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ endif()

if (FEATURE_FFMPEG)
include (ffmpeg)
list (APPEND AVSTREAM_COMPILE_FLAGS -DENABLE_FFMPEG3 ${FFMPEG_COMPILE_FLAGS})
list (APPEND AVSTREAM_COMPILE_FLAGS -DENABLE_FFMPEG ${FFMPEG_COMPILE_FLAGS})
list (APPEND AVSTREAM_LINK_FLAGS ${FFMPEG_LINK_FLAGS})

list (APPEND AVSTREAM_SOURCES ${TEAMTALKLIB_ROOT}/avstream/FFmpegStreamer.cpp)
Expand Down
4 changes: 2 additions & 2 deletions Library/TeamTalkLib/test/CatchDefault.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
#endif
#include <codec/WaveFile.h>

#if defined(ENABLE_FFMPEG3)
#if defined(ENABLE_FFMPEG)
#include <avstream/FFmpegStreamer.h>
#endif

Expand Down Expand Up @@ -1751,7 +1751,7 @@ TEST_CASE("TT_AEC")
}
#endif

#if defined(ENABLE_FFMPEG3)
#if defined(ENABLE_FFMPEG)
TEST_CASE("testThumbnail")
{
// ffmpeg -i in.mp3 -i teamtalk.png -map 0:0 -map 1:0 -c copy -id3v2_version 3 -metadata:s:v title="Album cover" -metadata:s:v comment="Cover (front)" out.mp3
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ android: LIBS += -lOpenSLES -llog
QMAKE_CXXFLAGS += -DENABLE_ENCRYPTION -D__ACE_INLINE__ # ace
QMAKE_CXXFLAGS += -D__STDC_CONSTANT_MACROS # ffmpeg
QMAKE_CXXFLAGS += -DENABLE_OPUS -DENABLE_OGG -DENABLE_OPUSTOOLS -DENABLE_SPEEX \
-DENABLE_FFMPEG3 -DENABLE_VPX -DENABLE_WEBRTC
-DENABLE_FFMPEG -DENABLE_VPX -DENABLE_WEBRTC

android: DEFINES += ENABLE_OPENSLES

Expand Down

0 comments on commit 1b23272

Please sign in to comment.