diff --git a/Telegram/SourceFiles/media/streaming/media_streaming_file.cpp b/Telegram/SourceFiles/media/streaming/media_streaming_file.cpp index 60fa317ad..4d5b27ffc 100644 --- a/Telegram/SourceFiles/media/streaming/media_streaming_file.cpp +++ b/Telegram/SourceFiles/media/streaming/media_streaming_file.cpp @@ -149,7 +149,7 @@ Stream File::Context::initStream( result.duration = (info->duration != AV_NOPTS_VALUE) ? PtsToTime(info->duration, result.timeBase) : PtsToTime(format->duration, kUniversalTimeBase); - if (!result.duration) { + if (result.duration <= 0) { result.codec = nullptr; } else if (result.duration == kTimeUnknown) { result.duration = kDurationUnavailable;