changed std::numeric_limits<int64_t>::min() to AV_NOPTS_VALUE. more portable

This commit is contained in:
rexy712
2019-03-16 11:38:29 -07:00
parent 8217964440
commit 70b91ad4b6
3 changed files with 5 additions and 4 deletions

View File

@@ -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();
}