Skip to content

Commit 8010dbe

Browse files
committed
rename to SetGenericOption
1 parent 995600f commit 8010dbe

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

source/ffmpeg-cpp/encode_video/encode_video.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ int main()
2222
codec->SetQualityScale(0);
2323

2424
// Set the bit rate option -b:v 2M
25-
codec->SetGlobalOption("b", "2M");
25+
codec->SetGenericOption("b", "2M");
2626

2727
// Create an encoder that will encode the raw audio data as MP3.
2828
// Tie it to the muxer so it will be written to the file.

source/ffmpeg-cpp/ffmpeg-cpp/Codecs/Codec.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ namespace ffmpegcpp
3535
av_opt_set_double(codecContext->priv_data, name, value, 0);
3636
}
3737

38-
void Codec::SetGlobalOption(const char* name, const char* value)
38+
void Codec::SetGenericOption(const char* name, const char* value)
3939
{
4040
av_opt_set(codecContext, name, value);
4141
}

source/ffmpeg-cpp/ffmpeg-cpp/Codecs/Codec.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ namespace ffmpegcpp
2020
void SetOption(const char* name, int value);
2121
void SetOption(const char* name, double value);
2222

23-
void SetGlobalOption(const char* name, const char* value);
23+
void SetGenericOption(const char* name, const char* value);
2424

2525
void SetGlobalContainerHeader(); // used by the Muxer for configuration purposes
2626

0 commit comments

Comments
 (0)