changed std::numeric_limits<int64_t>::min() to AV_NOPTS_VALUE. more portable
This commit is contained in:
@@ -16,8 +16,9 @@ namespace libav::fmt{
|
||||
public:
|
||||
input_context(void) = default;
|
||||
input_context(const char* filename){
|
||||
if(avformat_open_input(&m_context, filename, 0, 0) < 0)
|
||||
if(avformat_open_input(&m_context, filename, 0, 0) < 0){
|
||||
return;
|
||||
}
|
||||
if(avformat_find_stream_info(m_context, 0) < 0){
|
||||
reset();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user