Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<iostream>
- #include<vector>
- #define __STDC_CONSTANT_MACROS
- # include <stdint.h>
- extern"C"{
- #include"libavcodec/avcodec.h"
- #include"libavformat/avformat.h"
- }
- int main(){
- av_register_all();
- std::cout<<"Initiating ffmpeg";
- AVCodec *codec = avcodec_find_decoder(CODEC_ID_MP3);
- if(!codec){
- std::cout<<"Fail";
- }else{
- std::cout<<"Pass";
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement