Fix remux example to take correct main() params

Also add comments explaining the program and the videostreamer lib.
This commit is contained in:
Will Storey
2016-12-31 13:16:15 -08:00
parent 7f16d84882
commit fd0ddf62da
2 changed files with 12 additions and 3 deletions

View File

@@ -1,11 +1,15 @@
//
// This program remuxes from a given RTSP input to an mp4 container.
//
#include <stdbool.h>
#include <stdio.h>
#include <videostreamer.h>
int main(const int argc, const char * const argv)
int main(const int argc, const char * const * const argv)
{
if (argc != 2) {
printf("Usage: %s <rtsp URL>\n", argv[0]);
printf("Usage: %s <RTSP URL>\n", argv[0]);
return 1;
}