webm2pes: Rename Convert to ConvertToFile().
Change-Id: I98a928ff5b00e8961183136316be3615fd7462fe
This commit is contained in:
@@ -243,7 +243,7 @@ bool PesHeader::Write(std::FILE* file, bool write_pts) const {
|
||||
// Webm2Pes methods.
|
||||
//
|
||||
|
||||
bool Webm2Pes::Convert() {
|
||||
bool Webm2Pes::ConvertToFile() {
|
||||
if (input_file_name_.empty() || output_file_name_.empty()) {
|
||||
std::fprintf(stderr, "Webm2Pes: input and/or output file name(s) empty.\n");
|
||||
return false;
|
||||
|
||||
@@ -169,9 +169,9 @@ class Webm2Pes {
|
||||
Webm2Pes(Webm2Pes&&) = delete;
|
||||
~Webm2Pes() = default;
|
||||
|
||||
// Converts the VPx video stream to a PES and returns true. Returns false
|
||||
// Converts the VPx video stream to a PES file and returns true. Returns false
|
||||
// to report failure.
|
||||
bool Convert();
|
||||
bool ConvertToFile();
|
||||
|
||||
private:
|
||||
// fclose functor for wrapping FILE in std::unique_ptr.
|
||||
|
||||
@@ -28,5 +28,5 @@ int main(int argc, const char* argv[]) {
|
||||
const std::string output_path = argv[2];
|
||||
|
||||
libwebm::Webm2Pes converter(input_path, output_path);
|
||||
return converter.Convert() == true ? EXIT_SUCCESS : EXIT_FAILURE;
|
||||
return converter.ConvertToFile() == true ? EXIT_SUCCESS : EXIT_FAILURE;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user