| 44 | } |
| 45 | |
| 46 | bool AVDecoder::open(const QString filename) |
| 47 | { |
| 48 | if(avformat_open_input(&pFormatCtx, QFile::encodeName(filename).constData(), NULL, NULL) != 0) { |
| 49 | return false; |
| 50 | } |
| 51 | |
| 52 | if(avformat_find_stream_info(pFormatCtx, NULL) < 0) { |
| 53 | avformat_close_input(&pFormatCtx); |
| 54 | return false; |
| 55 | } |
| 56 | |
| 57 | return true; |
| 58 | } |
| 59 | |
| 60 | bool AVDecoder::loadCodec(codec_type codec) |
| 61 | { |
no outgoing calls
no test coverage detected