find stream info
This commit is contained in:
parent
dff2195f0d
commit
5113f2e4a5
8
hello.c
8
hello.c
@ -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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user