Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- AVFormatContext* pFormatCtx = avformat_alloc_context();
- AVStream *st;
- av_register_all();
- qDebug() << fname;
- int ret = avformat_open_input(&pFormatCtx, fname.toStdString().c_str(), NULL, NULL);
- if(ret < 0)
- perror("Issue is");
- st = avformat_new_stream(pFormatCtx, 0);
- if(!st) {
- fprintf(stderr, "Could not alloc stream\n");
- exit(1);
- }
- return true;
Add Comment
Please, Sign In to add comment