Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- AVFormatContext *pFormatCtx;
- // open input and figure out what file format it is
- if(avformat_open_input(&pFormatCtx, url, NULL, NULL) != 0) {
- fprintf(stderr, "Could not open %s\n", url);
- return;
- }
- // find info about the streams it contains
- if(av_find_stream_info(pFormatCtx) < 0) {
- av_dump_format(pFormatCtx, 0, url, 0);
- return;
- }
- // find audio stream
- // int audioStream = 1;
- int i = 0;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement