prevent closing console right after process error in windows

Signed-off-by: yuchenlin <npes87184@gmail.com>
This commit is contained in:
yuchenlin 2018-09-08 09:16:04 +08:00
parent a60aef5aaf
commit 066d3dfbcb

View file

@ -319,5 +319,10 @@ int main(int argc, char *argv[]) {
avformat_network_deinit(); // ignore failure
#if defined (__WINDOWS__) && ! defined (WINDOWS_NOCONSOLE)
if (res != 0) {
system("pause");
}
#endif
return res;
}