Advertisement
Guest User

Untitled

a guest
May 4th, 2012
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. AVFormatContext *pFormatCtx;
  2.  
  3. // open input and figure out what file format it is
  4. if(avformat_open_input(&pFormatCtx, url, NULL, NULL) != 0) {
  5. fprintf(stderr, "Could not open %s\n", url);
  6. return;
  7. }
  8.  
  9. // find info about the streams it contains
  10. if(av_find_stream_info(pFormatCtx) < 0) {
  11. av_dump_format(pFormatCtx, 0, url, 0);
  12. return;
  13. }
  14.  
  15. // find audio stream
  16. // int audioStream = 1;
  17. int i = 0;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement