From 098eefe60f4c8320f8641424a7d93518a7ae6434 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Mangano-Tarumi?= Date: Sat, 3 Nov 2018 17:25:14 -0400 Subject: [PATCH] explicit use of the ot namespace --- src/opustags.cc | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/src/opustags.cc b/src/opustags.cc index f3ecd77..635a4ca 100644 --- a/src/opustags.cc +++ b/src/opustags.cc @@ -11,8 +11,6 @@ #include #include -using namespace ot; - const char *version = PROJECT_NAME " version " PROJECT_VERSION "\n"; const char *usage = @@ -180,7 +178,7 @@ int main(int argc, char **argv){ ogg_stream_state os, enc; ogg_page og; ogg_packet op; - opus_tags tags; + ot::opus_tags tags; ogg_sync_init(&oy); char *buf; size_t len; @@ -207,7 +205,7 @@ int main(int argc, char **argv){ // We got a page. // Short-circuit when the relevant packets have been read. if(packet_count >= 2 && out){ - if(write_page(&og, out) == -1){ + if(ot::write_page(&og, out) == -1){ error = "write_page: fwrite error"; break; } @@ -241,7 +239,7 @@ int main(int argc, char **argv){ } } else if(packet_count == 2){ // Comment header - if(parse_tags((char*) op.packet, op.bytes, &tags) == -1){ + if(ot::parse_tags((char*) op.packet, op.bytes, &tags) == -1){ error = "opustags: invalid comment header"; break; } @@ -250,7 +248,7 @@ int main(int argc, char **argv){ else{ int i; for(i=0; i