Advertisement
Guest User

Untitled

a guest
Jul 7th, 2012
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.38 KB | None | 0 0
  1. #include<iostream>
  2. #include<vector>
  3. #define __STDC_CONSTANT_MACROS
  4. # include <stdint.h>
  5.  
  6. extern"C"{
  7.     #include"libavcodec/avcodec.h"
  8.     #include"libavformat/avformat.h"
  9. }
  10.  
  11. int main(){
  12.     av_register_all();
  13.     std::cout<<"Initiating ffmpeg";
  14.     AVCodec *codec = avcodec_find_decoder(CODEC_ID_MP3);
  15.     if(!codec){
  16.         std::cout<<"Fail";
  17.     }else{
  18.         std::cout<<"Pass";
  19.     }
  20.     return 0;
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement