find stream info

This commit is contained in:
Josh Holtrop 2014-12-08 16:56:08 -05:00
parent dff2195f0d
commit 5113f2e4a5

View File

@ -14,7 +14,13 @@ int main(int argc, char * argv[])
if (avformat_open_input(&context, argv[1], NULL, NULL) != 0) if (avformat_open_input(&context, argv[1], NULL, NULL) != 0)
{ {
fprintf(stderr, "Error opening input stream %s\n", argv[1]); fprintf(stderr, "Error opening input stream %s\n", argv[1]);
return 2; return 1;
}
if (avformat_find_stream_info(context, NULL) < 0)
{
fprintf(stderr, "Error finding stream info\n");
return 1;
} }
avformat_close_input(&context); avformat_close_input(&context);