remove unnecessary c++ Visual() error check #378

This commit is contained in:
nick black 2020-03-02 20:53:49 -05:00
parent e7d0ce72dd
commit a325a6d4b0
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

View File

@ -181,12 +181,6 @@ int main(int argc, char** argv){
std::cerr << argv[i] << ": " << e.what() << "\n"; std::cerr << argv[i] << ": " << e.what() << "\n";
return EXIT_FAILURE; return EXIT_FAILURE;
} }
if(!ncv){
av_make_error_string(errbuf.data(), errbuf.size(), averr);
nc.stop();
std::cerr << "Error opening " << argv[i] << ": " << errbuf.data() << std::endl;
return EXIT_FAILURE;
}
int r = ncv->stream(&averr, timescale, perframe, &frames); int r = ncv->stream(&averr, timescale, perframe, &frames);
if(r < 0){ // positive is intentional abort if(r < 0){ // positive is intentional abort
av_make_error_string(errbuf.data(), errbuf.size(), averr); av_make_error_string(errbuf.data(), errbuf.size(), averr);